help-octave
[Top][All Lists]
Advanced

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

Structure to vector conversion?


From: Keith White
Subject: Structure to vector conversion?
Date: Wed, 24 Sep 2008 20:47:43 +0100
User-agent: Thunderbird 2.0.0.16 (X11/20080724)

Is there are more efficient Octave way to perform the following structure to vector conversion?:

for i = 1:n
    a(i) = struct(i).value;
end

I thought may be something like
a = struct(:).value;
but that gives an error.

Thanks,

KW.


reply via email to

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