Symbolic Math Toolbox | Search  Help Desk | |
syms | Examples | See Also |
Short-cut for constructing symbolic objects.
syms arg1 arg2 ... syms arg1 arg2 ... real syms arg1 arg2 ... unreal
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.
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 unrealNote
clear x
will not clear the symbolic object x
of its status 'real'
. You can achieve this, using the commands syms x unreal
or clear mex
or clear all
. In the latter two cases, the Maple kernel will have to be reloaded in the MATLAB workspace. (This is inefficient and time consuming).
sym