Connecting plots of time series from a matrix data set?

2 ビュー (過去 30 日間)
Fercho_Sala
Fercho_Sala 2021 年 6 月 29 日
回答済み: Fercho_Sala 2021 年 7 月 2 日
Hello everyone, probably is an easy question,,, but with a matrix of 62(days)x48(sample points each one) as the one is attached, How can I plot this as day per day in one graphic? (62 intervals) Being x axis the day number. Thank you.

採用された回答

Scott MacKenzie
Scott MacKenzie 2021 年 6 月 29 日
編集済み: Scott MacKenzie 2021 年 6 月 29 日
I assume you're expecting a lot of clutter, since you are plotting 48 points for each of 62 days. Just use
plot(SS48h)
Here's the result with your data:
  2 件のコメント
Fercho_Sala
Fercho_Sala 2021 年 6 月 29 日
編集済み: Fercho_Sala 2021 年 6 月 29 日
@Scott MacKenzie every day has 48 samples, is it possible to plot each day independently in the general plot? , I know it will be a huge graphic, but this is the idea. For example the day number 12 looks like this:
then, the day number 13, 14, and so on...
Scott MacKenzie
Scott MacKenzie 2021 年 6 月 29 日
編集済み: Scott MacKenzie 2021 年 6 月 29 日
Well, there are a variety of possibilities. Here's one...
% your data in M
tiledlayout('flow');
n = size(M,1);
for i=1:n
nexttile;
plot(M(i,:));
set(gca,'ylim',[0 10]);
title(sprintf('Day %d',i));
end

サインインしてコメントする。

その他の回答 (1 件)

Fercho_Sala
Fercho_Sala 2021 年 7 月 2 日
@Scott MacKenzie Thank you, this is the correct script !

カテゴリ

Help Center および File ExchangeSurface and Mesh Plots についてさらに検索

製品


リリース

R2020b

Community Treasure Hunt

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

Start Hunting!

Translated by