How to use Matlab for latex output?

조회 수: 3 (최근 30일)
Shuping Ruan
Shuping Ruan 2017년 2월 17일
댓글: Shuping Ruan 2017년 2월 17일
I tried this and got an error.
set(0, 'defaultTextInterpreter', 'latex');
Subscript indices must either be real positive integers or logicals.

답변 (2개)

dbmn
dbmn 2017년 2월 17일

Shuping Ruan
Shuping Ruan 2017년 2월 17일
After reading this link https://www.mathworks.com/matlabcentral/answers/65423-problem-with-subplot-error-using-subsindex , I realized that I had a variable named set somewhere else. set(0, 'defaultTextInterpreter', 'latex') works.
  댓글 수: 1
Shuping Ruan
Shuping Ruan 2017년 2월 17일
This is a very nice slides on how to prepare plot for latex by Azad Ghaffari. http://flyingv.ucsd.edu/azad/Matlab_LaTeX_Figures.pdf

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

카테고리

Help CenterFile Exchange에서 LaTeX에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by