How to plot the 4th dimension of an array?

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 日

1 投票

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 日

0 投票

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

3 件のコメント

Walter Roberson
Walter Roberson 2013 年 12 月 4 日
That is not the 4th dimension, that is the 4th page of the third dimension.
Sabarinathan Vadivelu
Sabarinathan Vadivelu 2013 年 12 月 4 日
@Walter: Thanks.
srinivasarao tanniru
srinivasarao tanniru 2013 年 12 月 4 日
yeah..u r correct

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

カテゴリ

ヘルプ センター および File ExchangeLine Plots についてさらに検索

製品

Community Treasure Hunt

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

Start Hunting!

Translated by