Get current shape size in MATLAB

A simple question: how to get the current shape size in MATLAB?

Example:

figure(1) [width, height] = ****some function I'm not aware of**** 

Googling always returns how to resize a window, but not just get the current window size.

Any help is appreciated.

Greetings

+5
source share
1 answer
 pos = get(gcf, 'Position'); %// gives x left, y bottom, width, height width = pos(3); height = pos(4); 
+9
source

Source: https://habr.com/ru/post/1232056/


All Articles