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

 Réponse acceptée

arun
arun le 5 Juil 2015
Modifié(e) : arun le 5 Juil 2015

13 votes

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)

Plus de réponses (1)

Jan
Jan le 5 Juil 2015

1 vote

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

Catégories

En savoir plus sur 2-D and 3-D Plots dans Centre d'aide et File Exchange

Produits

Community Treasure Hunt

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

Start Hunting!

Translated by