image関数で表示​するY軸の表示方向を​反転したい

78 views (last 30 days)
hatosan
hatosan on 13 May 2020
Commented: hatosan on 13 May 2020
以下のプログラムで、csvから読み込んだデータをMATLABで画像として表示しています。
この時、x軸は左から右へ、y軸は上から下へ数字が大きくなりますが、
Y軸のみを下から上に数字が大きくなるように変更するにはどのようにすればよいでしょうか。
a= csvread(filename);
image(a,'CDataMapping','scaled');

Accepted Answer

Hiroki Okawa
Hiroki Okawa on 13 May 2020
axis xy
を用いると左下原点になります。
左上原点に戻したいときは
axis ij
です。
  1 Comment
hatosan
hatosan on 13 May 2020
ありがとうございます。
助かりました。

Sign in to comment.

More Answers (0)

Categories

Find more on イメージ in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!