save value in array during loop
- To: mathgroup at smc.vnet.net
- Subject: [mg70487] save value in array during loop
- From: schaa at geo.uni-koeln.de
- Date: Tue, 17 Oct 2006 02:59:51 -0400 (EDT)
Hi there, I am new to mathematica and I have the following problem: save a certain value in an array calculated during a loop. My attempt: For[i=0,i<=12, rho = i*25; V[[i]] = UserFunction[0.5]; i++] rho has the role of a global variable and is used in several other functions. UserFunction stands for a function which in turn calls other functions. V is the array of dimension 13 from 0 to 12. The code above does not work. What needed to be changed to make it work? Thanks a lot -Ralf
- Follow-Ups:
- Re: save value in array during loop
- From: Sseziwa Mukasa <mukasa@jeol.com>
- Re: save value in array during loop