Products & Services Solutions Academia Support User Community Company

Learn more about Symbolic Math Toolbox   

pretty - Pretty-print symbolic expressions

Syntax

Description

The pretty function prints symbolic output in a format that resembles typeset mathematics.

Examples

The following statements

A = sym(pascal(2))
B = eig(A)
pretty(B)

return

A =
[ 1, 1]
[ 1, 2]

B =
 3/2 - 5^(1/2)/2
 5^(1/2)/2 + 3/2

  +-          -+ 
  |       1/2  | 
  |  3   5     | 
  |  - - ----  | 
  |  2    2    | 
  |            | 
  |   1/2      | 
  |  5      3  | 
  |  ---- + -  | 
  |   2     2  | 
  +-          -+
  


Recommended Products

Includes the most popular MATLAB recorded presentations with Q&A sessions led by MATLAB experts.

 © 1984-2009- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS