MATLAB Answers


How can I add matlab figure to existing pdf file?

Asked by babita verma on 12 Sep 2017
Latest activity Commented on by tousif patwegar on 25 Apr 2019
Hi, I was collating few matlab figures to one pdf using export_fig.Is it possible to add a matlab figure to a specific page of the existing pdf? I know append can be used to add figure to existing pdf file but the problem is every time i mess up with the sequence (of figures ) I have to redo all the figures (in one pdf) again. So was wondering if a matlab figure can be added to a specific page of the existing pdf file.

  1 Comment

how you created one pdf of few matlab figures?
i am stuck i ghostscript and all.

Sign in to comment.


1 Answer

Answer by Walter Roberson
on 12 Sep 2017

Why not save the individual figures into a directory, and then have a routine that reads them in and adds them to a pdf? That way if you have to recreate one of the figures, you do not need to regenerate the other figures, just the PDF.

  1 Comment

Actaully I have many cases and so saving figures might rather lead to confusion later. so I would'nt prefer to save figures but just the mat files of relevant variables for each case. I can draw figures for specific cases from these mat files.

Sign in to comment.