@sym
: display (x) ¶Display, on command line, the contents of a symbolic expression.
Examples:
x = sym('x') ⇒ x = (sym) x display(x) ⇒ x = (sym) x display([x 2 pi]) ⇒ (sym) [x 2 π] (1×3 matrix)
Other examples:
A = sym([1 2; 3 4]) ⇒ A = (sym 2×2 matrix) ⎡1 2⎤ ⎢ ⎥ ⎣3 4⎦
syms n A = sym('A', [n n]) ⇒ A = (sym) A (n×n matrix expression) B = 3*A ⇒ B = (sym) 3⋅A (n×n matrix expression) A = sym(ones(0, 3)) ⇒ A = (sym) [] (empty 0×3 matrix) A = sym('A', [0, n]) ⇒ A = (sym) A (empty 0×n matrix expression) B = 3*A ⇒ B = (sym) 3⋅A (empty 0×n matrix expression)
See also: @sym/disp.
Package: symbolic