How to rotate plot using code?

I have a plot showing pixel intensity values. I want to rotate the plot clockwise 90 degrees...can anyone help

 Respuesta aceptada

arun
arun el 5 de Jul. de 2015
Editada: arun el 5 de Jul. de 2015

13 votos

let y is pixel intensity
x=1:1:length(y)
plot(y,x) may work instead of plot(y)
this command is useful to flip axis
set(gca,'YDir','reverse');
u can use this command too
camroll(-90)

Más respuestas (1)

Jan
Jan el 5 de Jul. de 2015

1 voto

Arun's "camroll" approach is equivalent to setting the CameraUpVector.

Productos

Etiquetas

Preguntada:

el 5 de Jul. de 2015

Comentada:

el 5 de Jul. de 2015

Community Treasure Hunt

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

Start Hunting!

Translated by