How can I get a list of all the defined variables in Matlab or Octave?

Nathan Fellman picture Nathan Fellman · Mar 16, 2010 · Viewed 17k times · Source

I'm used to working in Matlab using its full GUI environment. Due to license issues I went and installed Octave, but it appears that it doesn't have a GUI, at least not one that's installed by default.

I transferred the variables from Matlab to Octave by saveing them in Matlab and loading them in Octave. Thing is, I don't remember the names because I got used to seeing them in the little workspace window which I no longer have.

How can I see the list of defined variables and their types in Octave?

Answer

Alexander Torstling picture Alexander Torstling · Mar 16, 2010

The command whos will do just that.