How to plot the 4th dimension of an array?
2 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
srinivasarao tanniru
il 4 Dic 2013
Commentato: srinivasarao tanniru
il 4 Dic 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?
0 Commenti
Risposta accettata
Walter Roberson
il 4 Dic 2013
Modificato: Walter Roberson
il 4 Dic 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.
Più risposte (1)
Sabarinathan Vadivelu
il 4 Dic 2013
Modificato: Sabarinathan Vadivelu
il 4 Dic 2013
Extract the 4th dimension first.
fourthDimMatrix = allMatrix(:,:,4)
Then try plot function
3 Commenti
Vedere anche
Categorie
Scopri di più su 2-D and 3-D Plots in Help Center e File Exchange
Prodotti
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!