MATLAB Saving multiple figures to a PDF
问题 Is there any way to do this? I know how to use saveas ( saveas(1, filename, 'pdf'); ) to save one figure to a PDF file, but is it possible to add multiples? So something like ( saveas(1,2,3) filename, 'pdf')); . Thanks 回答1: I don't think so - you need to increment the file name in some manner. I would use something like: for ii=1:3 saveas(ii,[filename '-' num2str(ii)],'pdf) end As a side note, I have had repeated difficulties when including the pdfs generated by matlab in a manuscript