フィルターのクリア

How to plot the 4th dimension of an array?

2 ビュー (過去 30 日間)
srinivasarao tanniru
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?

採用された回答

Walter Roberson
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
Sabarinathan Vadivelu 2013 年 12 月 4 日
編集済み: Sabarinathan Vadivelu 2013 年 12 月 4 日
Extract the 4th dimension first.
fourthDimMatrix = allMatrix(:,:,4)
Then try plot function
  3 件のコメント
Sabarinathan Vadivelu
Sabarinathan Vadivelu 2013 年 12 月 4 日
@Walter: Thanks.
srinivasarao tanniru
srinivasarao tanniru 2013 年 12 月 4 日
yeah..u r correct

サインインしてコメントする。

カテゴリ

Help Center および File Exchange2-D and 3-D Plots についてさらに検索

製品

Community Treasure Hunt

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

Start Hunting!

Translated by