exportEpsPdf

버전 1.1.0.0 (3.27 KB) 작성자: Daniel
exporte a figure to eps and pdf using laprint, latex and ghostscript (Requires laprint!!!)
다운로드 수: 1.1K
업데이트 2010/7/23

라이선스 보기

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}

인용 양식

Daniel (2026). exportEpsPdf (https://kr.mathworks.com/matlabcentral/fileexchange/28275-exportepspdf), MATLAB Central File Exchange. 검색 날짜: .

MATLAB 릴리스 호환 정보
개발 환경: R2010a
모든 릴리스와 호환
플랫폼 호환성
Windows macOS Linux
카테고리
Help CenterMATLAB Answers에서 Printing and Saving에 대해 자세히 알아보기
도움

도움 받은 파일: LaPrint

버전 게시됨 릴리스 정보
1.1.0.0

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

1.0.0.0