Clear Filters
Clear Filters

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

4 views (last 30 days)
Claire Redfield
Claire Redfield on 18 Feb 2013
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...

Accepted Answer

Jan
Jan on 18 Feb 2013
Edited: Jan on 18 Feb 2013
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')

More Answers (0)

Categories

Find more on Interactive Control and Callbacks in Help Center and File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!