Connecting plots of time series from a matrix data set?
3 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
Fercho_Sala
il 29 Giu 2021
Risposto: Fercho_Sala
il 2 Lug 2021
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.
0 Commenti
Risposta accettata
Scott MacKenzie
il 29 Giu 2021
Modificato: Scott MacKenzie
il 29 Giu 2021
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 Commenti
Scott MacKenzie
il 29 Giu 2021
Modificato: Scott MacKenzie
il 29 Giu 2021
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
Più risposte (1)
Vedere anche
Categorie
Scopri di più su 2-D and 3-D Plots in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!