Enlarging Data Sets on Plot

I'm trying to plot multiple time series on the same plot with increments of 20 in between them. When I plot them, it, They're all really small, so i was wondering if there was a way to mess with the axis to enlarge each data set to make them easier to compare. I've attach the image and data set. Thank you so much in advance! t is time and M is the y variables.
Here is the code:
figure(1)
M=MTR([1:5],:);
for i=1:5
plot(t,M(i,:)+(20*i)','Linewidth',1)
hold on
end

 Risposta accettata

Simon Chan
Simon Chan il 2 Ago 2021
Could function stackedplot satisfy your needs? No enlargement on the axis but there is a cursor to report the values on each data.
stackedplot(t,M')

Più risposte (0)

Categorie

Scopri di più su 2-D and 3-D Plots in Centro assistenza e File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by