1.7: Useful Workspace Commands

Fundamentals of MATLAB Programming · LibreTexts

0%

Contents

    Text

    Size
    100%
    Theme
    Typeface
    Line length
    Spacing

    From LibreTexts, under CC BY-NC-SA, as the source states it; its equations are written in TeX, which the PDF shows typeset. This page at LibreTexts.

    1.7: Useful Workspace Commands

    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.