[Top][All Lists]

[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?


Octave is freely available under the terms of the GNU GPL.

Octave's home on the web:
How to fund new projects:
Subscription information:

reply via email to

[Prev in Thread] Current Thread [Next in Thread]