How to use Matlab for latex output?

I tried this and got an error.
set(0, 'defaultTextInterpreter', 'latex');
Subscript indices must either be real positive integers or logicals.

Respuestas (2)

Shuping Ruan
Shuping Ruan el 17 de Feb. de 2017

0 votos

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.

Categorías

Etiquetas

Preguntada:

el 17 de Feb. de 2017

Comentada:

el 17 de Feb. de 2017

Community Treasure Hunt

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

Start Hunting!

Translated by