I want to plot multiple graphs in a single plot with some space between each signal

6 vues (au cours des 30 derniers jours)
I want to plot multiple graphs in a single plot with some space between each signal
  7 commentaires
Walter Roberson
Walter Roberson le 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
jonas le 14 Sep 2018
I mean, the figure you uploaded is literally taken from the doc on stackedplot, so try it :)

Connectez-vous pour commenter.

Réponses (1)

KSSV
KSSV le 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 commentaires
sandhya sandhya
sandhya sandhya le 15 Sep 2018
I attached my mat files and i want to plot all these mat signals in a single plot(like the plot in your previous comment)and i think we should reduce the amplitude of the signals also.

Connectez-vous pour commenter.

Catégories

En savoir plus sur 2-D and 3-D Plots dans Help Center et File Exchange

Produits

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by