size(figure)=[1,1] Why?

1 回表示 (過去 30 日間)
Claire Redfield
Claire Redfield 2013 年 2 月 18 日
Hello guys,
When i make an empty figure like hFig = figure, why size(hFig)= size(figure)=[1,1] ? Apparently the figure shown on the screen is not 1 by 1 pixels...

採用された回答

Jan
Jan 2013 年 2 月 18 日
編集済み: Jan 2013 年 2 月 18 日
The figure command replies a handle, which identifies the GUI object uniquely. This handle is a scalar double, see:
figureHandle = figure
size(figureHandle)
You want:
figureHandle = figure;
figureSize = get(figureHandle, 'Position')

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangePrinting and Saving についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by