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 comentarios

Rik
Rik el 24 de Feb. de 2020
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?"
Mariana
Mariana el 24 de Feb. de 2020
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 el 24 de Feb. de 2020
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 el 24 de Feb. de 2020
Editada: Mariana el 24 de Feb. de 2020
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 el 24 de Feb. de 2020
Editada: Adam el 24 de Feb. de 2020
Some options in there for visualising data above 2 dimensions.
Mariana
Mariana el 24 de Feb. de 2020
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.

Iniciar sesión para comentar.

Respuestas (0)

Categorías

Productos

Versión

R2018b

Preguntada:

el 24 de Feb. de 2020

Comentada:

el 24 de Feb. de 2020

Community Treasure Hunt

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

Start Hunting!

Translated by