How to display figure in full-screen mode programmatically and save as a high resolution image?

17 views (last 30 days)
Ravindu Lokuliyana
Ravindu Lokuliyana on 28 Oct 2019
Answered: Bjorn Gustavsson on 28 Oct 2019
I need to save a figure in fullscreen mode and also save it as high resolution image. I have used following commands, but still can't achive the requirement.
FigH = figure('Position', get(0, 'Screensize'));
axis equal
view(0,90);shading interp;
caxis([0 max(max_J)]);
Also modified with the following command, but didn't satisfy the required level of resolution.
F = getframe(FigH);
imwrite(F.cdata, 'J.tiff', 'TIFF','Resolution',[1360 768]);
Can anyone help me to solve this issue?
Thank you.

Answers (1)

Bjorn Gustavsson
Bjorn Gustavsson on 28 Oct 2019
To save as high-resolution, I regularly use:
If you desperately want the image as a png-image at full resolution you can always go to the File->Pint Preview menu and set the print preference to print to actual screen-size.

Community Treasure Hunt

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

Start Hunting!