How can i create a stair step/curve?

Lin404

How can I plot a stair curve/step in matlab? I think it should exist a special command to do this. See picture

stair Step

serial

what about stairs?

X = linspace(0,4*pi,40);
Y = sin(X);

figure
stairs(Y, '-.or')

from MATLAB documentation

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related