Create a .pdf file with multiple exported MATLAB figures might be an interesting function. This project has advanced a tentative way to export multiple MATLAB figures to a single .pdf file.
There are three main steps for accomplishing this task:
(1) Download the Ghostscript software and the ps2pdf.m file and install the Ghostscript.
(2) Export the MATLAB figures to a .ps file using the following syntax:
print('-dpsc','LUSpatialAttributes.ps','-append',h); % if the exported figure is not the first one, append it to avoid overwritting
(3) Convert the .ps file to .pdf file using ps2pdf. Syntax as: "ps2pdf('psfile','LUSpatialAttributes.ps','pdffile','LUSpatial_attributes.pdf');"
Attached you can find the demo data and code. Enjoy and always be grateful to the programmer of Ghostscript and ps2pdf.m! (^_^)