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

后端 未结 3 1819
生来不讨喜
生来不讨喜 2020-12-30 22:40

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 o

3条回答
  •  别那么骄傲
    2020-12-30 23:16

    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')
    

提交回复
热议问题