Filter löschen
Filter löschen

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

4 Ansichten (letzte 30 Tage)
Claire Redfield
Claire Redfield am 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...

Akzeptierte Antwort

Jan
Jan am 18 Feb. 2013
Bearbeitet: Jan am 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')

Weitere Antworten (0)

Kategorien

Mehr zu Interactive Control and Callbacks finden Sie in Help Center und File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by