Figure size setting based on screen size
Adjust size of a figure in MATLAB based on the screen size. Codefig = figure(); clf; scrsz = get(0,'ScreenSize'); xstart = 0.2;ystart = 0.2;xsize = 0.7;ysize = 0.6;set(fig,'Position', [xstart*scrsz(3), ystart*scrsz(4), xsize*scrsz(3), ysize*scrsz(4)]);imagesc(rand(100, 100)); colormap bone;axis off; axis square;title(sprintf('xstart: %.1f ystart: %.1f xsize: %.1f ysize: %.1f', xstart, ystart, xs..
더보기