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

11 次查看(过去 30 天)
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 中查找有关 2-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