Dar*_*rcy 8 size matlab function figure
简单的问题:如何在MATLAB中获得当前的数字大小?
例:
figure(1)
[width, height] = ****some function I'm not aware of****
谷歌搜索这总是返回如何更改窗口大小但不知道如何获取当前窗口大小.
任何帮助表示赞赏.
干杯
Lui*_*ndo 12
pos = get(gcf, 'Position'); %// gives x left, y bottom, width, height
width = pos(3);
height = pos(4);