How to use Matlab for latex output?

3 Ansichten (letzte 30 Tage)
Shuping Ruan
Shuping Ruan am 17 Feb. 2017
Kommentiert: Shuping Ruan am 17 Feb. 2017
I tried this and got an error.
set(0, 'defaultTextInterpreter', 'latex');
Subscript indices must either be real positive integers or logicals.

Antworten (2)

dbmn
dbmn am 17 Feb. 2017

Shuping Ruan
Shuping Ruan am 17 Feb. 2017
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 Kommentar
Shuping Ruan
Shuping Ruan am 17 Feb. 2017
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

Melden Sie sich an, um zu kommentieren.

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by