axis control in Image plot

2 ビュー (過去 30 日間)
Namira
Namira 2018 年 7 月 2 日
コメント済み: Namira 2018 年 7 月 2 日
Hi, I am trying to understand image plot. When I run this example
x = [1 5];
y = [1 5];
C = [0 2 4 6; 8 10 12 14; 16 18 20 22];
imagesc(x,y,C)
I get the figure (attached here).
In Y axis its comes in descending order. I want to get it in Ascending order. How can I control the axis range?

採用された回答

KSSV
KSSV 2018 年 7 月 2 日
x = [1 5];
y = [1 5];
C = [0 2 4 6; 8 10 12 14; 16 18 20 22];
figure
h1 = axes ;
imagesc(x,y,C) ;
set(h1,'YDir','normal');
  1 件のコメント
Namira
Namira 2018 年 7 月 2 日
Thanks

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

その他の回答 (0 件)

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by