Re: Do Loop storing the outputs
- To: mathgroup at smc.vnet.net
- Subject: [mg39022] Re: Do Loop storing the outputs
- From: "Allan Hayes" <hay at haystack.demon.co.uk>
- Date: Sat, 25 Jan 2003 01:23:45 -0500 (EST)
- References: <b0r4h0$4mh$1@smc.vnet.net>
- Sender: owner-wri-mathgroup at wolfram.com
"Dimitris Psychoyios" <dpsycho at aueb.gr> wrote in message news:b0r4h0$4mh$1 at smc.vnet.net... > > I have the following problem in a do loop. I want to repeat a procedure > that involves many functions many times, but I need to store the values > of the functions in a matrix after each iteration. > > Thank you in advance, > > Dimitirs Psychoyios Dimitris, Someway you need to include the instruction to modify the matrix and assign it to a a symbol- here is a simple illustration: lst={}; Do[lst= Append[lst,n^2],{n,5}];lst {1,4,9,16,25} -- Allan --------------------- Allan Hayes Mathematica Training and Consulting Leicester UK www.haystack.demon.co.uk hay at haystack.demon.co.uk Voice: +44 (0)116 271 4198 Fax: +44 (0)870 164 0565