I want to plot multiple graphs in a single plot with some space between each signal
6 次查看(过去 30 天)
显示 更早的评论
I want to plot multiple graphs in a single plot with some space between each signal
7 个评论
Walter Roberson
2018-9-14
Have a look at the new stackedplot() https://www.mathworks.com/help/matlab/ref/stackedplot.html . This may require using a table object
jonas
2018-9-14
I mean, the figure you uploaded is literally taken from the doc on stackedplot, so try it :)
回答(1 个)
KSSV
2018-9-14
How about adding some number to the y values and plotting?
A = rand(10,10) ;
figure
hold on
x = 1:10 ;
for i = 1:10
plot(x,A(i,:)+i)
end
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Line Plots 的更多信息
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!