| Symbolic Math Toolbox | Search  Help Desk | |
| pretty | Examples |
Prettyprint symbolic expressions.
pretty(S) pretty(S,n)The
pretty function prints symbolic output in a format that resembles typeset mathematics.
pretty(S) prettyprints the symbolic matrix S using the default line width of 79.
pretty(S,n) prettyprints S using line width n instead of 79.
The following statements:
A = sym(pascal(2)) B = eig(A) pretty(B)return
A = [1, 1] [1, 2] B = [3/2+1/2*5^(1/2)] [3/2-1/2*5^(1/2)] [ 1/2 ] [ 3/2 + 1/2 5 ] [ ] [ 1/2 ] [ 3/2 - 1/2 5 ]