[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Get names of variables in symbol table
From: |
Andy Adler |
Subject: |
Get names of variables in symbol table |
Date: |
Sat, 22 Feb 2003 16:32:10 -0500 (EST) |
Is there a way to get the names of all the current variables,
or, alternatively, all the variables in a *.mat file.
I want to load a *.mat file and process each variable.
The best idea that I've currently though of is
x=system(['echo "load datafile.mat; whos" | octave -qfH | ' ...
'sed -e"s/.*[0-9]\\+ \\+[0-9]\\+ \\+//"']);
now x is a list of the variables in datafile.mat
I hope theres an easier way?
Andy
-------------------------------------------------------------
Octave is freely available under the terms of the GNU GPL.
Octave's home on the web: http://www.octave.org
How to fund new projects: http://www.octave.org/funding.html
Subscription information: http://www.octave.org/archive.html
-------------------------------------------------------------
- Get names of variables in symbol table,
Andy Adler <=