Assuming you have a vector of data that you want to "staircase":
main.m50 chars2 lines
We can use the stairs() function to generate a "staircase" plot of the data:
main.m14 chars2 lines
This will generate a plot with diagonal lines connecting successive data points. You can customize the appearance of the plot using the usual plot() options (e.g. linewidth, color, linestyle, etc.).
gistlibby LogSnag