How to plot a picture in squared sized using imagesc?

100 ビュー (過去 30 日間)
Weiqian Jiang
Weiqian Jiang 2016 年 9 月 25 日
コメント済み: Weiqian Jiang 2016 年 9 月 26 日
Hi there, i'm using imagesc to plot a colormap, in which the x/y data are equal in size, but when I plot it using imagesc, the output picture is always a rectangle rather than a square, I wonder how can I solve this problem,many thanks a lot!

採用された回答

Image Analyst
Image Analyst 2016 年 9 月 25 日
Try different axes options until you get what you like, like
axis square;
axis equal;
axis image;
  1 件のコメント
Weiqian Jiang
Weiqian Jiang 2016 年 9 月 26 日
thanks! I've tried these code, it works when I adjust my computer screen resolution (x/y ratio),so if all these codes do not work, that's probably because the computer resolution is not normal so that the picture displayed is not square.

サインインしてコメントする。

その他の回答 (0 件)

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by