Next: 1.4.1 Arrays: vectors and
Up: 1.4 Variables
Previous: 1.4.0.1 Built-in variables
  Contents
The workspace refers to the memory space utilized by MATLAB. To see what
variables have been defined, that is which variables are in the workspace,
try typing who. The who command list all the variable that
are currently defined in the workspace. Only the names of the variables are
listed. The related command whos lists each variable, its type, and
its size. Try the following.
clear
a = 1
b = 2
c = [2,3,5]
d = [4;1;3;-1]
e = 'words, words, words'
f = [7,9;8,5]
who
whos
Note that for e you must use single quotes, not double quotes. The
workspace can also be visible from a child window in the main MATLAB
window. If it isn't visible, go to View menu and select Workspace.
Gus Hart
2005-01-28