フィルターのクリア

Adjusting figure and axes size

1 回表示 (過去 30 日間)
RZM
RZM 2016 年 8 月 4 日
I have a problem with setting the size of figures and axes objects in MATLAB. I have tried to set the size of a figure to precisely 20 by 20 centimeters for example by the following scripts
a = figure;
set(a, 'Units', 'centimeters')
set(a, 'Position', [0, 0, 20, 20])
But It makes a figure with different size! I have the same problem in setting the axes size. Also I wanted to know how can I accurately set its size in a way it does not change based on the screen resolution, and the size remains the same on different computer screens?
Thanks in advance Ramtin

回答 (0 件)

カテゴリ

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

Community Treasure Hunt

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

Start Hunting!

Translated by