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

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

 Respuesta aceptada

Hiroki Okawa
Hiroki Okawa el 13 de Mayo de 2020

2 votos

axis xy
を用いると左下原点になります。
左上原点に戻したいときは
axis ij
です。

1 comentario

hatosan
hatosan el 13 de Mayo de 2020
ありがとうございます。
助かりました。

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Read, Write, and Modify Image en Centro de ayuda y File Exchange.

Etiquetas

Preguntada:

el 13 de Mayo de 2020

Comentada:

el 13 de Mayo de 2020

Community Treasure Hunt

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

Start Hunting!