How to rotate plot using code?

590 ビュー (過去 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 件のコメント
peyush
peyush 2015 年 7 月 5 日
thanks

サインインしてコメントする。

その他の回答 (1 件)

Jan
Jan 2015 年 7 月 5 日
Arun's "camroll" approach is equivalent to setting the CameraUpVector.
  1 件のコメント
peyush
peyush 2015 年 7 月 5 日
thanks

サインインしてコメントする。

カテゴリ

Help Center および File Exchange2-D and 3-D Plots についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by