how to set the axes component size to be fixed without to be resize with image size?

2 ビュー (過去 30 日間)
IJumperQ NoNeed
IJumperQ NoNeed 2019 年 4 月 24 日
コメント済み: IJumperQ NoNeed 2019 年 4 月 25 日
Hello everyone
i'm new to matlab and i've assigned a project using matlab, i am using axes compoent and i want to make it size fixed for example width=200 , height = 200 (never change with image size) and without fitting the image in it,however , i can't do that ! , i googled it for hours besides i am really new to matlab
thank you in advance

回答 (1 件)

Jan
Jan 2019 年 4 月 25 日
It depends on what "width=200" mean. The units matter: Are these data units or pixels?
Ax = axes('XLim', [1, 200], 'YLim', [1, 200]);
img = rand(640, 480, 3);
image(Ax, img);
  1 件のコメント
IJumperQ NoNeed
IJumperQ NoNeed 2019 年 4 月 25 日
well , i am faililer with pixels so i just want to set the axes size to fixed whatever measurment being used ! ,

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

カテゴリ

Help Center および File ExchangeGraphics Object Programming についてさらに検索

製品


リリース

R2013a

Community Treasure Hunt

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

Start Hunting!

Translated by