clear name1 name2 name3\xc9
clear, by itself, clears all variables from the workspace.
name removes just the variable or function
name from the workspace. Both M-file functions and MEX-file functions can be cleared this way.
name can be either a variable name or a function name.
name1 name2 name3 removes
name3 from the workspace.
functions clears all the currently compiled M-functions from memory.
variables clears all variables from the workspace.
mex clears all MEX-files from memory.
global clears all global variables.
all removes all variables, functions, and MEX-files from memory. It leaves MATLAB's workspace empty, as if MATLAB were just invoked.
name is global,
name from the current workspace, but leaves it accessible to any functions declaring it global.
name completely removes the global variable
clear global removes all global variables.
(c) Copyright 1994 by The MathWorks, Inc.