Using Stateflow     Search    Help Desk 

MATLAB Workspace

What Is the MATLAB Workspace?

The MATLAB workspace is the area of memory accessible from the MATLAB command line. The workspace maintains the set of variables built up during a MATLAB session.

See Getting Started with MATLAB and Using MATLAB for more information.

Using the MATLAB Workspace

You can define data objects to have a Workspace Scope. Any data objects defined with Workspace Scope must have value assigned in the MATLAB command window prior to starting a simulation.

Two commands, who and whos, show the current contents of the workspace. The who command gives a short list, while whos also gives size and storage information.

To delete all the existing variables from the workspace, enter clear at the MATLAB command line.

Using the Workspace data Scope is only meaningful for sfun simulation and RTW targets.



[ Previous | Help Desk | Next ]