Need help making a stairs graph
Show older comments
Hi can anyone tell me how to make a stair graph? For example, I have two y values, the fist is 3 when x is from 0 to 4, the second is -3 when x is from 4 to 8.
Since the total length is 8, I put
x=8;
y=??;
but what do I need to put for y? when there are two difference values but I need them on the same graph.
stairs(x,y)
Best Regards
Samious
Accepted Answer
More Answers (0)
Categories
Find more on Networks in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!