MATLAB: How to change plotyn plot curve lines to stairs line

curve lineplotynstairs line

I have 5 curve line, I have got them using plotyn.(see attached plot) I need to change the 5 line curves to stairs type line. How I can do it?
Thanks!

Best Answer

Can't you use STAIRS? An example:
x = 0:.2:pi/2 ;
y = sin(x) ;
plot(x,y,'bo-') ;
hold on ;
stairs(x,y,'r.-') ;
hold off
Related Question