How to rotate plot using code?

381 次查看(过去 30 天)
I have a plot showing pixel intensity values. I want to rotate the plot clockwise 90 degrees...can anyone help

采纳的回答

arun
arun 2015-7-5
编辑:arun 2015-7-5
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)

更多回答(1 个)

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

Community Treasure Hunt

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

Start Hunting!

Translated by