23.12.2012 Views

MATLAB Function Reference Volume 1: A - E - Bad Request

MATLAB Function Reference Volume 1: A - E - Bad Request

MATLAB Function Reference Volume 1: A - E - Bad Request

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

clear keyword clears the items indicated by keyword.<br />

Keyword Items Cleared<br />

all Removes all variables, functions, and MEX-files from<br />

memory, leaving the workspace empty. Using clear all<br />

removes debugging breakpoints in M-files and<br />

reinitializes persistent variables, since the breakpoints<br />

for a function and persistent variables are cleared<br />

whenever the M-file is changed or cleared. When issued<br />

from the Command Window prompt, also removes the<br />

Java packages import list.<br />

classes The same as clear all, but also clears <strong>MATLAB</strong> class<br />

definitions. If any objects exist outside the workspace<br />

(e.g., in user data or persistent variables in a locked<br />

M-file), a warning is issued and the class definition is<br />

not cleared. Issue a clear classes function if the<br />

number or names of fields in a class are changed.<br />

functions Clears all the currently compiled M-functions and<br />

MEX-functions from memory. Using clear function<br />

removes debugging breakpoints in the function M-file<br />

and reinitializes persistent variables, since the<br />

breakpoints for a function and persistent variables are<br />

cleared whenever the M-file is changed or cleared.<br />

global Clears all global variables from the workspace.<br />

import Removes the Java packages import list. It can only be<br />

issued from the Command Window prompt. It cannot be<br />

used in a function.<br />

variables Clears all variables from the workspace.<br />

clear('name1','name2','name3',...) is the function form of the syntax. Use<br />

this form when the variable name or function name is stored in a string.<br />

clear<br />

2-265

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!