image関数を用いたあと以下の図が表示されました。
カラーバーの値を変更したい(0~0.012の範囲に)のですがcaxis([0 0.012])と打ち込んでも変化しませんでした。
どなたか変更の方法を教えていただきたいです。
よろしくお願いします。

 Réponse acceptée

Tomohiro Takahashi
Tomohiro Takahashi le 24 Mar 2021

0 votes

image関数を使った場合,既定ではCDataMapping プロパティが'direct'なので,caxisは機能しないと思います.
image(C,'CDataMapping','scaled')
のようにCDataMappingをscaledに指定して使うか,imagesc関数を使うのがよいと思います.

Plus de réponses (0)

Catégories

Produits

Version

R2019a

Community Treasure Hunt

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

Start Hunting!