How to swap between X, Y and Z in 3D plot

조회 수: 24 (최근 30일)
maryam abdulla
maryam abdulla 2020년 7월 13일
답변: LO 2020년 7월 13일
Hi there,
i do have a 3D plot that has X, Y and multiplu value of Z
i need to present the Data as following,
where Z vlaues shown in X direction, Y value in Z direction and X in Y direction
  댓글 수: 2
maryam abdulla
maryam abdulla 2020년 7월 13일
thank you for your reply, this way doesnt work
it can change the axis lable or rotate the veiw while i need the whole data to be swap or exchange

댓글을 달려면 로그인하십시오.

답변 (1개)

LO
LO 2020년 7월 13일
the function permute rearranges the order of the axes.
S = permute(S,[1 2 3]);
S1 = S = permute(S,[3 1 2]); % swapped matrix

카테고리

Help CenterFile Exchange에서 Polar Plots에 대해 자세히 알아보기

제품


릴리스

R2020a

Community Treasure Hunt

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

Start Hunting!

Translated by