Re: Importing Mathematica objects
- To: mathgroup at smc.vnet.net
- Subject: [mg91276] Re: Importing Mathematica objects
- From: Jean-Marc Gulliet <jeanmarc.gulliet at gmail.com>
- Date: Wed, 13 Aug 2008 04:39:20 -0400 (EDT)
- Organization: The Open University, Milton Keynes, UK
- References: <g7rilq$ibt$1@smc.vnet.net>
Joerg Schaber wrote: > Hi, > > I saved a Mathematica expression (InterpolatingFunction object) in a file: > Save["file",expression]; > > However, when I want to load the expression again, it doesnt't work. I > do not even get an error. I tried > Get["file"] > Import["file"] > > The file is rather large (180 MB). Might that be a problem. > > Any idea? Use *DumpSave* as in the following example: s = NDSolve[{y'[x] == y[x] Cos[x + y[x]], y[0] == 1}, y, {x, 0, 30}] Plot[Evaluate[y[x] /. s], {x, 0, 30}, PlotRange -> All] DumpSave["s.mx", s] Clear[s] Plot[Evaluate[y[x] /. s], {x, 0, 30}, PlotRange -> All] << s.mx Plot[Evaluate[y[x] /. s], {x, 0, 30}, PlotRange -> All] Regards, -- Jean-Marc