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

 采纳的回答

arun
arun 2015-7-5
编辑:arun 2015-7-5

13 个投票

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)

产品

标签

Community Treasure Hunt

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

Start Hunting!

Translated by