exportEpsPdf

exporte a figure to eps and pdf using laprint, latex and ghostscript (Requires laprint!!!)

Sie verfolgen jetzt diese Einreichung

This functions uses laprint to generate the eps and tex for a matlab figure. To make this great function available to pdflatex, this funciton was created. It adds a document header to the tex file, compiles it, and converts eps to pdf (including the boundingbox optimisation)
Export a figure with:
set(0,'defaulttextinterpreter','none') % wichtig für laprint
h1=figure;
x=1:0.01:6;
plot(x,sin(x.^2+x))
xlabel('$x$ in m')
ylabel('$y=\sin( x^2+x)$ ')
exportEpsPdf('mytestfig','Ghostscript','C:\Programme\gs\gs8.71\bin\gswin32c.exe')

And include the images in latex without extension (latex will take the eps and pdflatex the pdf):

\begin{figure}
\includegraphics{bilder/mytestfig}
\caption{My MATLAB figure}
\end{figure}

Zitieren als

Daniel (2026). exportEpsPdf (https://de.mathworks.com/matlabcentral/fileexchange/28275-exportepspdf), MATLAB Central File Exchange. Abgerufen .

Quellenangaben

Inspiriert von: LaPrint

Kategorien

Mehr zu Printing and Saving finden Sie in Help Center und MATLAB Answers

Allgemeine Informationen

Kompatibilität der MATLAB-Version

  • Kompatibel mit allen Versionen

Plattform-Kompatibilität

  • Windows
  • macOS
  • Linux
Version Veröffentlicht Versionshinweise Action
1.1.0.0

removed small bugs e.g. fn was set directly in the function

1.0.0.0