
5 Workspace, Search Path, and File Operations
MATLAB Workspace
In this section...
“About the MATLAB Workspace” on page 5-2
“Opening the Workspace Browser” on page 5-3
“Viewing and Editing Values in the Current Workspace” on page 5-3
“Saving the Current Workspace” on page 5-5
“Loading a Saved Workspace and Importing Data” on page 5-7
“Changing and Copying Variable Names” on page 5-8
“Deleting Workspace Variables” on page 5-8
“Viewing Base and Function Workspaces Using the Stack” on page 5-9
“Creating Plots from the Workspace Browser” on page 5-9
“Opening Variables and Objects for Viewing and Editing” on page 5-9
“Preferences for the Workspace Browser” on page 5-10
About the MATLAB Workspace
The MATLAB workspace consists of the set of variables (named a rrays) built
up during a M ATLAB session and stored in memory. You add variables to the
workspace by using functions, running M-files, a nd loading saved w o rkspaces.
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.
You can perform works pace operations and related features using the
Workspace browser. Equivalent functions are available and are documented
witheachfeatureoftheWorkspacebrowser. If y ou have an active Internet
connection, you can watch the Workspacebrowservideodemoforanoverview
of the major functionality:
5-2
Comentarios a estos manuales