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

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

Akzeptierte Antwort

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

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Kategorien

Mehr zu イメージ finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!