Shifted Stairstep graphs in a single figure
1 次查看(过去 30 天)
显示 更早的评论
Good morning,
I should draw 100 stairstep curves in a single graph with x-axis from 0 to 100, where each curve is shifted by 1. How could I do?
Thank You for your time.
S.V.
0 个评论
回答(1 个)
KALYAN ACHARJYA
2019-10-10
编辑:KALYAN ACHARJYA
2019-10-10
Is this?
for j=1:100
stairs(j:j:100);
hold on;
end
Or
for j=1:100
stairs(j:j+1:100);
hold on;
end
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Graph and Network Algorithms 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!