Symbolic Math Toolbox | Search  Help Desk | |
latex | Examples | See Also |
LaTeX representation of a symbolic expression.
latex(S
)
latex(S
) returns the LaTeX representation of the symbolic expression S
.
The statements
syms x f = taylor(log(1+x)); latex(f)return
x-1/2\,{x}^{2}+1/3\,{x}^{3}-1/4\,{x}^{4}+1/5\,{x}^{5}The statements
H = sym(hilb(3)); latex(H)return
\left [\begin {array}{ccc} 1&1/2&1/3\\\noalign{\medskip}1/2&1/ 3&1/4 \\\noalign{\medskip}1/3&1/4&1/5\end {array}\right ]The statements
syms alpha t A = [alpha t alpha*t]; latex(A)return
\left [\begin {array}{ccc} \alpha&t&\alpha\,t\end {array}\right ]
pretty
,
ccode
,
fortran