How to rotate plot using code?

조회 수: 320 (최근 30일)
peyush
peyush 2015년 7월 5일
댓글: peyush 2015년 7월 5일
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