Desktop Tools and Development Environment |
Changing and Copying Variable Names
To rename a variable in the workspace, right-click the variable in the Workspace browser and select Rename from the context menu. Type the new variable name over the existing name and press Enter or Return.
To copy variable names to the clipboard, select the workspace variables and select Edit -> Copy. You can then paste the names, for example, into the Command Window. Multiple variables are comma separated.
Deleting Workspace Variables
You can delete a variable, which removes it from the workspace. To delete a variable using the Workspace browser,
To delete all variables, select Edit -> Clear Workspace from any desktop tool.
Function Alternative
Use the clear
function to clear variables from the workspace. For example,
clear A M
clears the variables A
and M
from the workspace.
Loading a Saved Workspace and Importing Data | Viewing Base and Function Workspaces Using the Stack |
© 1994-2005 The MathWorks, Inc.