How to use transpose in my graph?

31 ビュー (過去 30 日間)
JACINTA ONWUKA
JACINTA ONWUKA 2019 年 8 月 16 日
コメント済み: JACINTA ONWUKA 2019 年 8 月 16 日
My y-axis is in opposite direction, from 6000 to 0 insted of 0 to 6000.
imagesc(x,y,C) % this is my plot
I have tried
a) imagesc(x,y.',C) % but it did not work.
b) imagesc(x,y',C) % but it did not work.
c) imagesc(x,(flipud(y)),C) % but it did not work.
d) imagesc(x,(fliplr(y)),C) % but it did not work.
Please i need help. Thanks

採用された回答

Bruno Luong
Bruno Luong 2019 年 8 月 16 日
編集済み: Bruno Luong 2019 年 8 月 16 日
Put this after imagesc command
set(gca,'Ydir','normal')
or
imagesc(x,y,flipud(C) )
  1 件のコメント
JACINTA ONWUKA
JACINTA ONWUKA 2019 年 8 月 16 日
it works.....Thanks :)

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

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeCreating and Concatenating Matrices についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by