Services & Resources / Wolfram Forums
-----
 /
MathGroup Archive
2005
*January
*February
*March
*April
*May
*June
*July
*August
*September
*October
*November
*December
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 2005

[Date Index] [Thread Index] [Author Index]

Search the Archive

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
>
> 


  • Prev by Date: Problem with singularities in Plot3D
  • Next by Date: Re: Writing result of "Do" in a single List
  • Previous by thread: Re: Writing result of "Do" in a single List
  • Next by thread: Re: Writing result of "Do" in a single List