PDF Export of Figures

This toolbox is for exporting figures as PDF files.

You are now following this Submission

Information:
You will be able to export PDF to a specific folder on your computer.
This is a great when working with Latex and dropbox.
With dropbox linked to your Latex acount, you can automatically update all your plots in Latex from Matlab.
You will need the full version of Latex to do this.
In order to make the Toolbox work, you will need to change the file 'figexp' to contain the right directroy for you.
You need to use forward slash '/' in the path and your path HAVE to end with '/' also.
%% figexp --
% Path example
% Switch case based on the computer name
switch computerName
case 'user1' % enter name of computer here
db = "/user1/name/dropbox/plots/";
case 'user2' % enter name of computer here
db = "/user2/name/dropbox/plots/";
case ...
otherwise
disp('Unknown computer.');
end

Cite As

Sebastian Siggaard (2026). PDF Export of Figures (https://www.mathworks.com/matlabcentral/fileexchange/172269-pdf-export-of-figures), MATLAB Central File Exchange. Retrieved .

Tags

Add Tags

Add the first tag.

General Information

MATLAB Release Compatibility

  • Compatible with R2020b and later releases

Platform Compatibility

  • Windows
  • macOS
  • Linux
Version Published Release Notes Action
1.4

Language change of some text

1.3

Change in db_path function

1.2

Title change

1.1

Removal of function, and update of Required MathWorks Products.

1.0