Effacer les filtres
Effacer les filtres

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

1 vue (au cours des 30 derniers jours)
Spencer
Spencer le 14 Nov 2023
Commenté : Image Analyst le 15 Nov 2023
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)

Réponse acceptée

Walter Roberson
Walter Roberson le 14 Nov 2023
Position = Lab6DataNoCyl(:,6);
Vel1 =Lab6DataNoCyl(:,5);
plot(Vel1,Position)
set(gca, 'XDir', 'reverse')
  2 commentaires
Spencer
Spencer le 14 Nov 2023
Worked! Thanks lots!!
Image Analyst
Image Analyst le 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.

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur Argument Definitions dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by