How to rotate plot using code?

578 Ansichten (letzte 30 Tage)
peyush
peyush am 5 Jul. 2015
Kommentiert: peyush am 5 Jul. 2015
I have a plot showing pixel intensity values. I want to rotate the plot clockwise 90 degrees...can anyone help

Akzeptierte Antwort

arun
arun am 5 Jul. 2015
Bearbeitet: arun am 5 Jul. 2015
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)

Weitere Antworten (1)

Jan
Jan am 5 Jul. 2015
Arun's "camroll" approach is equivalent to setting the CameraUpVector.

Kategorien

Mehr zu 2-D and 3-D Plots 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