 
 
 
 
 
 
Re: Writing result of "Do" in a single List
- To: mathgroup at smc.vnet.net
- Subject: [mg55339] Re: [mg55305] Writing result of "Do" in a single List
- From: "Matthias Bode" <lvsaba at hotmail.com>
- Date: Sat, 19 Mar 2005 04:46:36 -0500 (EST)
- References: <200503181035.FAA14780@smc.vnet.net>
- Sender: owner-wri-mathgroup at wolfram.com
Hello Laurent,
I suggest you use
list01 = Table[n^2, {n, 3, 18, 3}]
and
Export[ ] (-> Help Browser)
instead of
list02 = Do[Print[n^2], {n, 3, 18, 3}].
Best regards,
MATTHIAS BODE
Torres Sofer III, depto. 9 A
Pedro Borda #1072
esq. Ismael Vásquez
COCHABAMBA/BOLIVIA
CEL: +591-70 71 56 64
TEL/FAX: +591-4-4 53 34 17
LVSABA at HOTMAIL.COM
----- Original Message ----- 
From: "Laurent Feuz" <laurent.feuz at mat.ethz.ch>
To: mathgroup at smc.vnet.net
Subject: [mg55339] [mg55305] Writing result of "Do" in a single List
> Hi
> When I am calculating values with the
> Do[expr, {i, imin, imax, di}]
> expression, I get single values as a result that are a pain to export.
>
> How can I write these values in a list that then can easily be exported?
>
> Thanks for any hints!
> best
> Laurent
>
> 
- References:
- Writing result of "Do" in a single List
- From: Laurent Feuz <laurent.feuz@mat.ethz.ch>
 
 
- Writing result of "Do" in a single List

