How to plot the 4th dimension of an array?
2 ビュー (過去 30 日間)
古いコメントを表示
srinivasarao tanniru
2013 年 12 月 4 日
コメント済み: srinivasarao tanniru
2013 年 12 月 4 日
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 件のコメント
採用された回答
Walter Roberson
2013 年 12 月 4 日
編集済み: Walter Roberson
2013 年 12 月 4 日
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.
その他の回答 (1 件)
Sabarinathan Vadivelu
2013 年 12 月 4 日
編集済み: Sabarinathan Vadivelu
2013 年 12 月 4 日
Extract the 4th dimension first.
fourthDimMatrix = allMatrix(:,:,4)
Then try plot function
3 件のコメント
参考
製品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!