How can I stack STEM plots in a single Matlab plot
2 次查看(过去 30 天)
显示 更早的评论
I am trying to stack 3 STEM plots but unable to do so.
I did the 3 normal plots by doing +1 and +2.
How can I do it?
采纳的回答
Sean de Wolski
2014-4-4
编辑:Sean de Wolski
2014-4-4
x = (1:10)';
y = rand(10,3);
ys = cumsum(y,2);
stem(x,fliplr(ys))
2 个评论
Sean de Wolski
2014-4-4
I just edited the example. I think it's probably more in line with what you want now.
更多回答(0 个)
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!