![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/668853/image.jpeg)
Connecting plots of time series from a matrix data set?
조회 수: 2 (최근 30일)
이전 댓글 표시
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
채택된 답변
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:
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/668853/image.jpeg)
댓글 수: 2
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
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/669383/image.jpeg)
추가 답변 (1개)
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!