Clears global symbols by setting them equal to scalar zero.
clearg a, b, c;
It is considered a best practice to avoid using global variables inside of procedures when possible.
is equivalent to
x = 0;
where x is understood to be a global symbol. clearg can be used to initialize symbols not previously referenced. This command can be used inside of procedures to clear global matrices. It will ignore any locals by the same name.