Welcome to the new platform of Programmer's Heaven! We apologize for the inconvenience caused, if you visited us from a broken link of the previous version. The main reason to move to a new platform is to provide more effective and collaborative experience to you all. Please feel free to experience the new platform and use its exciting features. Contact us for any issue that you need to get clarified. We are more than happy to help you.
Convert set of images to pdf
I'd like to put many matlab fugures into a single .pdf file.
I thought an idea could be to make a loop to save all figures to image files by using imwrite and then use fwrite.
The prblem is that imwrite wants either a M-by-N (greyscale) or a
M-by-N-by-3 (truecolor) matrix to save the figure and I don't know I to reduce the matlabfigure I get to such a matrix. I tried with get, but I can only get the colormap as a useful information. No way I can save the figure to a single matrix.
Anyone could help?
0 · ·