Opening the book…
The following are some of the most helpful commands in MATLAB. They are used to manage the command window and workspace.
|
Command |
What it does |
|
who |
Lists the variables currently in the Workspace. |
|
whos |
Lists variables and gives extra information such as size, bytes, and class. |
|
clear |
Removes all variables from the Workspace. |
|
clear variableName |
Removes one specific variable. |
|
clc |
Clears the Command Window display. |
|
exist variableName |
Checks whether a name exists in the Workspace or on the MATLAB path. |
This page titled 1.7: Useful Workspace Commands was last modified on Tue, 30 Jun 2026 02:11:48 GMT and is shared under a CC BY-NC-SA license and was authored, remixed, and/or curated by Zara Noroozi.
The book could not be loaded just now.