Recently Posted




Notice: SSI.php was unable to load a session! This may cause problems with logout and other functions - please make sure SSI.php is included before *anything* else in all your scripts! in /home/tutorial/public_html/mathforum/SSI.php on line 155
« beep

variables and functions from memory.
removes all variables from the workspace.
VARIABLES does the same thing.
GLOBAL removes all global variables.
FUNCTIONS removes all compiled M- and MEX-functions.

ALL removes all variables, globals, functions and MEX links.
ALL at the command prompt also removes the Java packages
import list.
IMPORT removes the Java packages import list at the command
prompt. It cannot be used in a function.

CLASSES is the same as ALL except that class definitions
are also cleared. If any objects exist outside the workspace (say in
userdata or persistent in a locked m-file) a warning will be issued
and the class definition will not be cleared. CLASSES must be
used if the number or names of fields in a class are changed.

VAR1 VAR2 … clears the variables specified. The wildcard
character ‘*’ can be used to variables that match a pattern.
For instance, X* clears all the variables in the current
workspace that start with X.

If X is global, X removes X from the current workspace,
but leaves it accessible to any functions declaring it global.
GLOBAL X completely removes the global variable X.

FUN clears the function specified. If FUN has been locked
by MLOCK it will remain in memory. Use a partial path (see
PARTIALPATH) to distinguish between different overloaded versions of
FUN. For instance, ‘ inline/display’ clears only the INLINE
method for DISPLAY, leaving any other implementations in memory.

ALL, FUN, or FUNCTIONS also have the side effect of
removing debugging breakpoints and reinitializing persistent variables
since the breakpoints for a function and persistent variables are
cleared whenever the m-file changes or is cleared.

Use the functional form of , such as (’name’),
when the variable name or function name is stored in a string.

See also who, whos, mlock, munlock, persistent.

Tags: , ,


Related posts

You may be the one to comment first. Please leave your message below.