Set the ‘Position’ property on the current figure (gcf). By default, the position is in pixels.
x0=10;
y0=10;
width=550;
height=400
set(gcf,'position',[x0,y0,width,height])
You can specify other units (inches, centimeters, normalized, points, or characters). For example:
set(gcf,'units','points','position',[x0,y0,width,height])
1 Comment
Soni huu (view profile)
Direct link to this comment:
https://www.mathworks.com/matlabcentral/answers/65402-how-to-set-graph-size#comment_133093
Sign in to comment.