Saving the output figures using saveas() as full sized images
9 views (last 30 days)
I was trying to save the output plots directly into my present directory using the saveas() command. Even though it saves successfully I am having some trouble in saving them as full screen sized images. I used the following code:
figure1 = figure(1);
figure1.WindowState = 'maximized';
b = [100:1:110];
figure2 = figure(2);
figure2.WindowState = 'maximized';
c = [0.1:0.01:1];
figure3 = figure(3);
figure3.WindowState = 'maximized';
d = [1000:10:1100];
figure4 = figure(4);
figure4.WindowState = 'maximized';
When I run this, some of the plots are saved as required (i.e. after maximizing and then saving - attached as fig1, fig2, fig3.png) whereas some are saved without maximizing (attached as fig4.png). I also tried 'fullscreen' instead of maximizing, but the results stay the same.
It would be great if someone could point me in the right direction.