Borrar filtros
Borrar filtros

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

4 visualizaciones (últimos 30 días)
Claire Redfield
Claire Redfield el 18 de Feb. de 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...

Respuesta aceptada

Jan
Jan el 18 de Feb. de 2013
Editada: Jan el 18 de Feb. de 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')

Más respuestas (0)

Categorías

Más información sobre Interactive Control and Callbacks en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by