I. \( LaTeX command \)
Second, $ LaTeX command $3, $$ LaTeX command $ $
1. Add characters directly to the image: text ('interpreter',' latex',' string',' $ \ sqrt {x 2+y 2} $ $',' position', [.5.5], …' fontsize', 65433.
2. Add a legend
Mathematical character h = legend ('$ \ sqrt {x 2+y 2} $ $');
Set (h,' interpreter',' latex')
You can also use the \ (\) command and so on. You can also use the LaTeX command to handle title, xlabel, ylabel, zlabel, legend, and so on.
For example: XLAbel ({'$ \ int _ 0 x \\int_y)
Extended data:
Matters needing attention
The interpreter attributes of title, xlabel, ylabel, zlabel, textbox and legend in Matlab graphics include latex, tex and none, and the default value is tex.
Note: LaTeX is a set of macro software described by TeX. LaTeX has many preset templates and styles. It is more structured than TeX, for example, it contains macros and public software for building indexes, tables, lists, etc. Using this format, users can give full play to the powerful functions provided by TeX even without typesetting and programming knowledge, especially for generating complex tables and mathematical formulas.
In order to use LaTeX command conveniently, it is necessary to set the interpreter attributes of title, xlabel, ylabel, zlabel, textbox and legend in Matlab graphics to latex.