I want to plot multiple graphs in a single plot with some space between each signal
Show older comments
I want to plot multiple graphs in a single plot with some space between each signal
7 Comments
jonas
on 14 Sep 2018
Can you show an example?
sandhya sandhya
on 14 Sep 2018
Walter Roberson
on 14 Sep 2018
sandhya sandhya
on 14 Sep 2018
Edited: sandhya sandhya
on 14 Sep 2018
sandhya sandhya
on 14 Sep 2018
Walter Roberson
on 14 Sep 2018
Have a look at the new stackedplot() https://www.mathworks.com/help/matlab/ref/stackedplot.html . This may require using a table object
jonas
on 14 Sep 2018
I mean, the figure you uploaded is literally taken from the doc on stackedplot, so try it :)
Answers (1)
KSSV
on 14 Sep 2018
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
6 Comments
sandhya sandhya
on 14 Sep 2018
sandhya sandhya
on 14 Sep 2018
KSSV
on 14 Sep 2018
:) I gave you a pseudo code......A should be your data.
sandhya sandhya
on 14 Sep 2018
KSSV
on 14 Sep 2018
Share you mat file.
sandhya sandhya
on 15 Sep 2018
Categories
Find more on Line Plots in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!


