Borrar filtros
Borrar filtros

How to plot the 4th dimension of an array?

2 visualizaciones (últimos 30 días)
srinivasarao tanniru
srinivasarao tanniru el 4 de Dic. de 2013
Comentada: srinivasarao tanniru el 4 de Dic. de 2013
Hi All,
I retrieved a matrix that stores a variable called temp. The matrix is 4D. If I want to retrieve only the 4th column and plot it how can i do that?

Respuesta aceptada

Walter Roberson
Walter Roberson el 4 de Dic. de 2013
Editada: Walter Roberson el 4 de Dic. de 2013
threeD_array = permute( YourMatrix(:,4,:,:), [1 3 4 2]); %column 4
But then you have the problem of how to plot a 3D array, as doing so requires a 4D plot -- X, Y, Z, and value.

Más respuestas (1)

Sabarinathan Vadivelu
Sabarinathan Vadivelu el 4 de Dic. de 2013
Editada: Sabarinathan Vadivelu el 4 de Dic. de 2013
Extract the 4th dimension first.
fourthDimMatrix = allMatrix(:,:,4)
Then try plot function
  3 comentarios
Sabarinathan Vadivelu
Sabarinathan Vadivelu el 4 de Dic. de 2013
@Walter: Thanks.
srinivasarao tanniru
srinivasarao tanniru el 4 de Dic. de 2013
yeah..u r correct

Iniciar sesión para comentar.

Categorías

Más información sobre 2-D and 3-D Plots en Help Center y File Exchange.

Productos

Community Treasure Hunt

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

Start Hunting!

Translated by