Q&A
Ask and answer questions to make information more available to wider audiences.
Colin Pento @colinpento   18, Aug 2023 12:00 AM
difference between who and whos
What's the difference between who and whos in MATLAB?
answers 1
 
Answer 1
Chance Boorman @boormanchance   31, Aug 2023 10:39 AM
   who lists in alphabetical order the names of all variables in the currently active workspace.
   whos lists in alphabetical order the names, sizes, and types of all variables in the currently active workspace.
>> FIRST = 10
>> SECOND = 90
>> THIRD = FIRST + SECOND
>> vector = [10 20 30 40 50 60 70 80 90 100]
>> who
Your variables are:
FIRST SECOND THIRD vector
>> whos
    Name            Size      Bytes        Class          Attributes
    FIRST            1x1        8             double
    SECOND       1x1        8             double
    THIRD           1x1        8             double
    vector           1x10       80            double