Simple question: How do you get the current figure size in MATLAB?
Example:
figure(1)
[width, height] = ****some function I'm not aware of****
Googling this always returns how to change the window size but not how to just get the current window size.
Any help is appreciated.
Cheers
pos = get(gcf, 'Position'); %// gives x left, y bottom, width, height
width = pos(3);
height = pos(4);