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 件のコメント
このコメントへの直接リンク
https://jp.mathworks.com/matlabcentral/answers/65402-how-to-set-graph-size#comment_133093
このコメントへの直接リンク
https://jp.mathworks.com/matlabcentral/answers/65402-how-to-set-graph-size#comment_133093
サインインしてコメントする。