Mathematica 9 is now available
Services & Resources / Wolfram Forums / MathGroup Archive
-----

MathGroup Archive 2007

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

Search the Archive

question about For

  • To: mathgroup at smc.vnet.net
  • Subject: [mg84119] question about For
  • From: "Ary Adilson Morales Alvarado" <amorales at lme.usp.br>
  • Date: Mon, 10 Dec 2007 20:43:11 -0500 (EST)

Dear friends,

I would like to know how to save the data from a For loop.

Something like that:

t=For[i = 1, i < 5, Print[i]; i++]

t={1, 2, 3, 4}

Thanks in advance

Ary



-- 
This message was scanned for spam and viruses by BitDefender.
For more information please visit http://linux.bitdefender.com/



  • Prev by Date: Re: Precedence of Infix Operator
  • Next by Date: OPTIMIZATION: nonlinear regression analysis with mathematica
  • Previous by thread: Bug in Print
  • Next by thread: Re: question about For