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?

 Akzeptierte Antwort

Walter Roberson
Walter Roberson am 4 Dez. 2013
Bearbeitet: Walter Roberson am 4 Dez. 2013

1 Stimme

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.

Weitere Antworten (1)

Sabarinathan Vadivelu
Sabarinathan Vadivelu am 4 Dez. 2013
Bearbeitet: Sabarinathan Vadivelu am 4 Dez. 2013

0 Stimmen

Extract the 4th dimension first.
fourthDimMatrix = allMatrix(:,:,4)
Then try plot function

3 Kommentare

Walter Roberson
Walter Roberson am 4 Dez. 2013
That is not the 4th dimension, that is the 4th page of the third dimension.
@Walter: Thanks.
yeah..u r correct

Melden Sie sich an, um zu kommentieren.

Kategorien

Mehr zu 2-D and 3-D Plots finden Sie in Hilfe-Center und File Exchange

Produkte

Community Treasure Hunt

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

Start Hunting!

Translated by