[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
rename, save `whos`
From: |
Daniel Heiserer |
Subject: |
rename, save `whos` |
Date: |
Thu, 13 Jul 2000 09:57:15 +0200 |
Hi,
is there a way to rename a matrix.
I mean a real "move" not a "copy"
and a delete.
The thing is that I have thousands of matrices in my
memory and I do not want to shuffle
GB of ram around.....
something like a
rename('oldname','newname');
Is there also a way like in matlab to
store the result of 'whos' in a struct?
----------------------------------------------------
>> a=rand(3,5);b=eye(100);
>> mydict=whos
mydict =
2x1 struct array with fields:
name
size
bytes
class
>> mydict.name
ans =
a
ans =
b
>> mydict.size
ans =
3 5
ans =
100 100
>> mydict.bytes
ans =
120
ans =
80000
>> mydict.class
ans =
double
ans =
double
----------------------------------------------------
thanks
daniel
-----------------------------------------------------------------------
Octave is freely available under the terms of the GNU GPL.
Octave's home on the web: http://www.che.wisc.edu/octave/octave.html
How to fund new projects: http://www.che.wisc.edu/octave/funding.html
Subscription information: http://www.che.wisc.edu/octave/archive.html
-----------------------------------------------------------------------
- rename, save `whos`,
Daniel Heiserer <=