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

10 ビュー (過去 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 件のコメント
madhan ravi
madhan ravi 2020 年 7 月 13 日
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 Center および File Exchange2-D and 3-D Plots についてさらに検索

製品


リリース

R2020a

Community Treasure Hunt

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

Start Hunting!

Translated by