PDF Export of Figures

This toolbox is for exporting figures as PDF files.
8 Downloads
Updated 6 Sep 2024

View License

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 (2025). PDF Export of Figures (https://www.mathworks.com/matlabcentral/fileexchange/172269-pdf-export-of-figures), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2023b
Compatible with R2020b and later releases
Platform Compatibility
Windows macOS Linux
Tags Add Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
Version Published Release Notes
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