
List of variables in Octave
In this lesson I teach you how to see the list of variables used in an Octave session.
When you create a variable the information about the variable is added to the Octave workspace. At any time you can see the list of variables you have already created and their characteristics.
I'll give you a practical example.
Define two variables.
>> a=2
a = 2
>> b=3
b = 3
Type who in the command window to see the list of workspace variables
>> who
This command shows the names of the variables present in the workspace
These are the variables you have already created during the session.
Variables in the current scope:
a b
If you want to see more information about the variables, type the command whos
The whos command also lists the data type, size, and number of bytes of the variable.
Alternatively, the same information can be seen in the Octave interface in the Workspace section.
It is located on the left of the screen.