Plot differing matrices vs time

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 日

0 投票

Try for loop
for i = 0:99
surface(A(1:3+i*3,:)+i)
end

5 件のコメント

Susan
Susan 2020 年 4 月 29 日
Thanks for your reply. It gave me the following output (considering 600 observation)
While I am looking for something like: (each scater is a representation of a matrix vs. time). Any idea?
darova
darova 2020 年 4 月 29 日
What size of the matrix? Is size 1x1?
Susan
Susan 2020 年 4 月 29 日
It is a 3*5 matrix.
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 件)

カテゴリ

ヘルプ センター および File Exchange2-D and 3-D Plots についてさらに検索

質問済み:

2020 年 4 月 29 日

コメント済み:

2020 年 4 月 29 日

Community Treasure Hunt

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

Start Hunting!

Translated by