Borrar filtros
Borrar filtros

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

1 visualización (últimos 30 días)
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)

Respuesta aceptada

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

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Argument Definitions en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by