Stairs Command MATLAB Ends
1 次查看(过去 30 天)
显示 更早的评论
采纳的回答
sixwwwwww
2013-10-18
编辑:sixwwwwww
2013-10-18
Dear T,
I think you can do as follows (If i understood correctly)
figure
X = linspace(0,4*pi,40);
Y = sin(X);
stairs(X, Y), hold on
plot(X(end), Y(end), 'ro', 'linewidth', 2)
Or maybe you can use different color for next stairs to see difference between two series.
I hope it helps. Good luck!
16 个评论
sixwwwwww
2013-10-24
How you want to change the axis when you plot? Can you provide some screen shots what you need and what are you getting right now?
更多回答(1 个)
Azzi Abdelmalek
2013-10-18
编辑:Azzi Abdelmalek
2013-10-18
x=1:10
y=[0 1 0 1 0 1 0 1 0 1]
stairs(x,y,'k')
hold on
scatter(x,y,'or','linewidth',2)
%you can also change ylim
ylim([0 1.5])
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Annotations 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!