Plot is backwards. Want the peaks to be facing right, not left.

1 次查看(过去 30 天)
Trying to plot the velocity profile of a wind tunnel experiment. The wind is visualized moving left to right, so I would like the peaks to be pointing towards the right instead of towards the left. I have tried inverting the matrix, but it is a column array, so that does not work. I pretty much want an 180 degree rotation of the plot.
Position = Lab6DataNoCyl(:,6);
Vel1 =Lab6DataNoCyl(:,5);
plot(Vel1,Position)

采纳的回答

Walter Roberson
Walter Roberson 2023-11-14
Position = Lab6DataNoCyl(:,6);
Vel1 =Lab6DataNoCyl(:,5);
plot(Vel1,Position)
set(gca, 'XDir', 'reverse')
  2 个评论
Image Analyst
Image Analyst 2023-11-15
If this Answer solves your original question, then could you please click the "Accept this answer" link to award the answerer with "reputation points" for their efforts in helping you? They'd appreciate it. Thanks in advance. 🙂 Note: you can only accept one answer (so pick the best one) but you can click the "Vote" icon for as many Answers as you want. Voting for an answer will also award reputation points.

请先登录,再进行评论。

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Argument Definitions 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by