Mathematica 9 is now available
Services & Resources / Wolfram Forums
-----
 /
MathGroup Archive
2004
*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 2004

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

Search the Archive

help save matrix inside a Loop

  • To: mathgroup at smc.vnet.net
  • Subject: [mg49553] help save matrix inside a Loop
  • From: "paolo " <tarpanelli at libero.it>
  • Date: Fri, 23 Jul 2004 05:59:46 -0400 (EDT)
  • Sender: owner-wri-mathgroup at wolfram.com

I am generating scenarios of interest rate. Any scenarios is a matrix [[n,m]].
to generate  multiple scenarios i use a loop "For[ ]". I need to save any matrix
generated in a file txt.

How can i include the save command

   MatrixName >> ".././.nameFile.txt"

inside the loop 

   For [ ................]  

to save all the matrix in different files????? i.e. if the Loop have 50 steps i
wish to create 50 file txt each of one is a different scenario.

The (obvious) problem that i am encoutering is that for any step of the Loop the
new matrix created will overwrite the previous matrix so at the end of the Loop
i can "Load" only the file of the last scenario generated!

Thanks

Paolo


  • Prev by Date: Re: Loading graphics package
  • Next by Date: Re: Plotting 2D functions with discontinuities
  • Previous by thread: Integration of product of 3 MeijerG functions
  • Next by thread: Re: help save matrix inside a Loop