How to rotate plot using code?

607 visualizzazioni (ultimi 30 giorni)
peyush
peyush il 5 Lug 2015
Commentato: peyush il 5 Lug 2015
I have a plot showing pixel intensity values. I want to rotate the plot clockwise 90 degrees...can anyone help

Risposta accettata

arun
arun il 5 Lug 2015
Modificato: arun il 5 Lug 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)

Più risposte (1)

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

Categorie

Scopri di più su 2-D and 3-D Plots in Help Center e File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by