필터 지우기
필터 지우기

The best way to add MATLAB/Simulink plots/figures to a Latex document

조회 수: 15 (최근 30일)
Nima Mathwork
Nima Mathwork 2020년 11월 16일
편집: Bruno Luong 2020년 11월 16일
Hello everyone
What is the best way to add MATLAB/Simulink plots/figures to a Latex document?
I prefer to keep figures high quality vector graphics.

답변 (1개)

Bruno Luong
Bruno Luong 2020년 11월 16일
I don't know is it's the best but I export to EPS
set(fig,'renderer','Painters');
print(fig, 'figurexxx.eps','-depsc2');
Then use EPS2PDF to convert to PDF, then include in LaTeX document.
  댓글 수: 2
Ameer Hamza
Ameer Hamza 2020년 11월 16일
편집: Ameer Hamza 2020년 11월 16일
Even better is to use psfrag with eps files to make in place text replacements using the latex commands.
Bruno Luong
Bruno Luong 2020년 11월 16일
편집: Bruno Luong 2020년 11월 16일
Good to know. I might try psfrag the next time I write a report.
EDIT: just make a quicktest and pdf2eps produces a better/sharper graph than psfrag. (The output file is also larger).

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Printing and Saving에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by