Filter löschen
Filter löschen

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

1 Ansicht (letzte 30 Tage)
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)

Akzeptierte Antwort

Walter Roberson
Walter Roberson am 14 Nov. 2023
Position = Lab6DataNoCyl(:,6);
Vel1 =Lab6DataNoCyl(:,5);
plot(Vel1,Position)
set(gca, 'XDir', 'reverse')
  2 Kommentare
Image Analyst
Image Analyst am 15 Nov. 2023
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.

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Kategorien

Mehr zu Argument Definitions finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by