Normally you print figures with default settings. If you want to change print settings for a figure you go to Print Preview and set it to "Landscape", "Color", "Margins 1 inch" or something like that.
What happens when you have to print dozens of similar figures? You might have 30 graphs that you'd like to be printed in a certain way. You have to set, say, "Landscape", "Margins 1 inch" for each one of them individually. Tedium ensues.
This file fixes that problem. It is fully commented.
You pick your desired printing settings once. Then the code will loop to print each figure using those settings. Your figures are created in a function that you write, and they are all printed using the same non-default print settings you picked the first time.
Lukas Hoffmann (2021). Automate Print Settings when Printing Multiple Figures (https://www.mathworks.com/matlabcentral/fileexchange/29561-automate-print-settings-when-printing-multiple-figures), MATLAB Central File Exchange. Retrieved .
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!