How to plot the 4th dimension of an array?

조회 수: 2 (최근 30일)
srinivasarao tanniru
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?

채택된 답변

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 CenterFile Exchange에서 2-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