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 save
ing them in Matlab and load
ing 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?
Command Window — To view the value of a variable in the Command Window, type the variable name. For the example, to see the value of a variable n , type n and press Enter. The Command Window displays the variable name and its value. To view all the variables in the current workspace, call the who function.
When MATLAB® executes the whos command at the end of show_attributes , it lists each variable and its corresponding attribute.
If you type whos at the command line Matlab will list all currently defined variables in your workspace. The last column of output is headed 'Attributes', global variables have the attribute 'global'.
nameN . To clear all variables from the current workspace, use clear or clearvars . To clear all global variables, use clear global or clearvars –global .
The command whos
will do just that.
With the command whos
you can even see the variables that the file has WITHOUT opening the file, to be assure that this file is the one.
For example, the name of the file is MyVariables.mat
use:
whos('-file','MyVariables.mat')
You can use a GUI similar to Matlab, such as QtOctave or GUIOctave.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With