[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Data Structure Question
From: |
Henry F. Mollet |
Subject: |
Data Structure Question |
Date: |
Sat, 10 Jan 2004 10:27:02 -0800 |
User-agent: |
Microsoft-Entourage/10.1.1.2418 |
Am I on the right track here for the use of a data structure? I'd like to
add variable names (columns) and comments (rows) to a matrix a. It seems to
work for the comments but not the varnames.
Henry
octave:13> x.a = [1,2;3,4];
octave:14> x.comment = ["FirstRowComment"; "SecondRowComment"];
octave:15> x.varname = ["Var1", "Var2"];
octave:16> x
x =
{
a =
1 2
3 4
comment =
FirstRowComment
SecondRowComment
varname = Var1Var2
}
-------------------------------------------------------------
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
-------------------------------------------------------------
- Data Structure Question,
Henry F. Mollet <=