| Contents | Index |
| On this page… |
|---|
The MATLAB workspace is an area of memory normally accessible from the MATLAB command line. It maintains a set of variables built up during a MATLAB session.
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 all at the MATLAB command line. See the MATLAB documentation for more information.
A chart has the following access to the MATLAB workspace:
You can access MATLAB data or MATLAB functions in Stateflow action language with the ml namespace operator or the ml function.
See Calling Built-In MATLAB Functions and Accessing Workspace Data for more information.
You can use the MATLAB workspace to initialize chart data at the beginning of a simulation.
See Entering Expressions and Parameters for Data Properties.
You can save chart data to the workspace at the end of a simulation.
See Saving Data to the MATLAB Workspace for more information.
![]() | Creating Specialized Chart Libraries for Large-Scale Modeling | Interface to External Sources | ![]() |

Learn how engineers use Stateflow to model state machines in their Simulink models.
| © 1984-2012- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |