From help-octave-request at bevo dot che dot wisc dot edu Sat Jan 10 12:29:10 2004 Subject: Data Structure Question From: "Henry F. Mollet" To: Octave_post Date: Sat, 10 Jan 2004 10:27:02 -0800 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 -------------------------------------------------------------