Stateflow    

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 the MATLAB online or printed documentation for more information.

Using the MATLAB Workspace

You can use the MATLAB workspace to initialize chart data at the beginning of a simulation and you can save chart data to the workspace at the end of a simulation. See Initialize from and Save final value to base workspace for more information.

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.


 Outputting Data to Simulink Defining the Interface to External Sources