| Symbolic Math Toolbox | ![]() |
Syntax
syms arg1 arg2 ... syms arg1 arg2 ... real syms arg1 arg2 ... unreal
Description
syms arg1 arg2 ... is short-hand notation for
arg1 = sym('arg1');
arg2 = sym('arg2'); ...
syms arg1 arg2 ... real is short-hand notation for
arg1 = sym('arg1','real');
arg2 = sym('arg2','real'); ...
syms arg1 arg2 ... unreal is short-hand notation for
arg1 = sym('arg1','unreal');
arg2 = sym('arg2','unreal'); ...
Each input argument must begin with a letter and can contain only alphanumeric characters.
Examples
syms x beta real is equivalent to
x = sym('x','real');
beta = sym('beta','real');
To clear the symbolic objects x and beta of 'real' status, type
syms x beta unreal
See Also
sym
| sym | sym2poly | ![]() |