[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Looping deeper in structure elements
From: |
Falk Dechent |
Subject: |
Looping deeper in structure elements |
Date: |
Wed, 22 Nov 2006 09:03:09 +0100 |
User-agent: |
KMail/1.9.5 |
Hi everybody!
I'm new using octave (and never used mathlab) and I have several questions.
Will slpit them in two posts.
zeug.cm0=1;
for [val,key] = zeug
key=10 * val;
endfor
zeug.cm0 #result =1
for [val,key] = zeug
val=10 * val;
endfor
zeug.cm0 #result =1
for [val,key] = zeug
eval(strcat('zeug.' , key , '=10 *val;' ));
endfor
zeug.cm0 #result =10
Well is there an other method do this my goal is something like this:
zeug.cm0.x=4;
for [val,key] = zeug
for [val,key] = val
val=10 * val;
endfor
endfor
zeug.cm0.x=40;
Ideas I hope someone can help
Falk
(octave 2.9.9)
pgp1ntLqhWX7r.pgp
Description: PGP signature
- Re: How many plotting engines do we have?, (continued)
- Re: How many plotting engines do we have?, Etienne Grossmann, 2006/11/20
- Re: How many plotting engines do we have?, P.J.G. Long, 2006/11/22
- Re: How many plotting engines do we have?, Joe Koski, 2006/11/23
- Re: How many plotting engines do we have?, David Bateman, 2006/11/23
- Re: How many plotting engines do we have?, P.J.G. Long, 2006/11/26
- Re: How many plotting engines do we have?, David Bateman, 2006/11/26
- Re: How many plotting engines do we have?, Francesco Potorti`, 2006/11/27
- Re: How many plotting engines do we have?, David Bateman, 2006/11/27
- Message not available
- Re: How many plotting engines do we have?, Jordi Gutierrez Hermoso, 2006/11/23
- Re: How many plotting engines do we have?, John W. Eaton, 2006/11/23
Looping deeper in structure elements,
Falk Dechent <=
Re: How many plotting engines do we have?, Falk Dechent, 2006/11/22