Development Environment | ![]() ![]() |
MATLAB Workspace
The MATLAB workspace consists of the set of variables (named arrays) built up during a MATLAB session and stored in memory. You add variables to the workspace by using functions, running M-files, and loading saved workspaces. For example, if you type
t = 0:pi/4:2*pi; y = sin(t);
the workspace includes two variables, y
and t
, each having nine values.
Use the Workspace browser to perform operations on the MATLAB workspace. Equivalent functions are available and are documented for each feature of the Workspace browser.
To open the Workspace browser, do one of the following:
workspace
at the Command Window prompt.Workspace operations you can perform from the Workspace browser or with functions are:
You can also set preferences - see Preferences for the Workspace Browser.
![]() | Workspace, Path, and File Operations | Viewing the Current Workspace | ![]() |