How to visualize in a plot a Multidimensional array?

Hi!
a = rand(10); % matrix
b = repmat(a, 1, 1, 5); % makes multiple copies of your matrix in 3rd dimension
I used this two lines of code to generate a 3rd dimension of my original matrix. How can I visualize it?

댓글 수: 6

Rik
Rik 2020년 2월 24일
It is your data, only you know what makes the most sense. You should decide what kind of visualization makes sense for you, and then try implementing it. We can't tell you what makes sense for your application if you don't tell us anything about your application.
Currently your question is similar to "should I use plot or bar?"
The same matrix is repeated in 5 pages but I would like to plot all the values in one graph and if the values are higher than 2 change the color of all that section.
Like a division of color depending on the range of values. I hope I had explained myself.
Rik
Rik 2020년 2월 24일
So you want to create an image like this? Why repeat the same matrix 5 times? That will only get you the same image 5 times.
Mariana
Mariana 2020년 2월 24일
편집: Mariana 2020년 2월 24일
Well the idea is to create other ones reduced by 10%. Technically, they will get smaller and smaller.
For example
If I have as input --> (5,10,2) = 2.5 Fifth row, 10 column and second row. Since 2.5 is higher than 2. Its classified as in the save zone.
If I have another input where the result is less than two then its danger zone.
If the page value is positive I want to keep the same format as the original but if the page value is negative the zones should decrease.
Adam
Adam 2020년 2월 24일
편집: Adam 2020년 2월 24일
Some options in there for visualising data above 2 dimensions.
But that works when you have all the data as x,y,z. I can do that but per page not for all.
Here, are my data sets they were previously multiplied by mask to reduce the values y certain percentage. I am trying to make split in two parts these data. The values that are higher than 2 and less than 2. I made a concat but I have 6D array and I just want a 3D.
Similar to what repmap does but with different 2d matrix.

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

답변 (0개)

카테고리

도움말 센터File Exchange에서 Logical에 대해 자세히 알아보기

제품

릴리스

R2018b

질문:

2020년 2월 24일

댓글:

2020년 2월 24일

Community Treasure Hunt

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

Start Hunting!

Translated by