help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

indexing structures


From: Scott Skjei
Subject: indexing structures
Date: Thu, 5 Feb 2004 15:49:32 -0800
User-agent: Mutt/1.4.1i

Hello,

I would like to create a number of data structures with a looping/indexing 
command.  The idea I have is

for i = 1:n
    structure(i).element = a(i,:)
endfor

so each row i of the matrix a becomes an element of structure(i).

Any help would be greatly appreciated.

Scott Skjei
<saskjei at sfu dot ca>



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



reply via email to

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