Keeping track of for loops

Matthew Albrecht mattyalbrecht at gmail.com
Fri Feb 29 08:54:43 CET 2008


I would like to keep track of the output of a for loop, so that each output
is assigned sequentially to a new variable from 'x1' to 'xn'.
In its most simplest form, I would like to be able to do this:

for i=1:n
x=i
end
x1=1
x2=2
....
xn=n

Where currently it outputs
x=1
x=2
...
x=n

Thanks
Matt
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.scilab.org/pipermail/users/attachments/20080229/723a8fee/attachment.htm>


More information about the users mailing list