Functions > Miscellaneous Functions > Variable Clearing Functions
Variable Clearing Functions
clear(x, y, ...)—Clears variables x, y, ..., both symbolically and numerically.
clear.sym(x, y, ...)—Clears variables x, y, ..., symbolically but not numerically.
Arguments
x, y are any variables.
For the clear function, the argument can be a system variable: TOL, CTOL, ORIGIN, PRNPRECISION and PRNCOLWIDTH. Clearing a system variable restores its default value.
Additional Information
The clear and clear.sym functions can only be used by themselves, and not as part of another expression, evaluation or definition.
Was this helpful?