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

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

Réponse acceptée

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

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur イメージ dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!