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

4 次查看(过去 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 CenterFile Exchange 中查找有关 Interactive Control and Callbacks 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by