[Top][All Lists]

[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


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,:)

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:
How to fund new projects:
Subscription information:

reply via email to

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