help-octave
[Top][All Lists]
Advanced

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

Re: Possible bug? cell array indexing problem


From: mass168
Subject: Re: Possible bug? cell array indexing problem
Date: Tue, 18 Dec 2012 13:06:54 -0800 (PST)

Thanks for the help guys, eval() solved my problem. The following code now
works exactly like I needed it to. 

y={[1,2,3];[5,8,9];[35:2:46]}
n1=3;
n2=2;
n3=6;   

for n103=1:3
a=num2str(n103) 
b=strcat('n',a)
y{3,1}(1,eval(b))       
endfor

MJ



--
View this message in context: 
http://octave.1599824.n4.nabble.com/Re-Possible-bug-cell-array-indexing-problem-tp4648047p4648060.html
Sent from the Octave - General mailing list archive at Nabble.com.


reply via email to

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