save plots in Maximize mode ???

how to save plots in Maximize mode in Matlab. I am using the following command, the figure is maximized but It is NOT getting saved in maximize mode ? please let me know. thanks.
set(gcf,'units','normalized','outerposition',[0 0 1 1])
print(gcf, '-djpeg100' ,jpegpath);

1 Comment

Just to guide someone still looking for the answer:
https://uk.mathworks.com/matlabcentral/answers/340470-saving-a-figure-in-full-screen-size

Sign in to comment.

Answers (0)

Categories

Find more on 2-D and 3-D Plots in Help Center and File Exchange

Asked:

on 31 Jul 2013

Commented:

on 21 Jan 2021

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!