help-octave
[Top][All Lists]
Advanced

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

Re: looping through sequential cell names


From: Nir Krakauer
Subject: Re: looping through sequential cell names
Date: Tue, 18 Aug 2015 08:58:35 -0500

Kai's solution should work, for example:

for i=1:100
    eval (['x = Y', num2str(i) ';'])

   ##do calculations on x, end up with z

   eval (['Z' num2str(i) ' = z;']) #copy result to Zi
endfor

reply via email to

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