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
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 submission. My current solution is to produce eps files and convert with a shell script.
r/
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With