Enlarging Data Sets on Plot

2 ビュー (過去 30 日間)
Kayla Washington
Kayla Washington 2021 年 8 月 2 日
回答済み: Simon Chan 2021 年 8 月 2 日
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

採用された回答

Simon Chan
Simon Chan 2021 年 8 月 2 日
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')

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeAnnotations についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by