Plot differing matrices vs time

조회 수: 5 (최근 30일)
Susan
Susan 2020년 4월 29일
댓글: Susan 2020년 4월 29일
Hello everyone,
I have a data set and I would like to plot it versus time. For each observation (at a specific time instance) I have a 3*5 matrix.
The data set that I have is a 300*5 matrix (100 observations and for each of them a 3*5 matrix). How can I plot my data versus time?
Thanks in advance!

채택된 답변

darova
darova 2020년 4월 29일
Try for loop
for i = 0:99
surface(A(1:3+i*3,:)+i)
end
  댓글 수: 5
darova
darova 2020년 4월 29일
What about this?
for i = 0:99
A1 = A(1:3+i*3,:);
y(i+1) = mean(A1(:));
end
plot(y)
Susan
Susan 2020년 4월 29일
Thanks again for your reply. It somehow sovled my issue, however, I am not sure if taking "mean" over data (each matrix) makes sense here or not. Thank you very much though!

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Creating and Concatenating Matrices에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by