Questions tagged [save]
136 questions
3
votes
1 answer
How to DumpSave all variables or the whole notebook?
Is there a way to DumpSave all the variables in the notebook? Or better whole notebook so that opening it would restore all the definitions.
Al Guy
- 1,610
- 1
- 10
- 15
1
vote
2 answers
How to save a sequence as a plain text file?
I would like to be able to generate data files like the ones provided with NIST SP 800-22 (binary expansions of irrational constants), which contain data akin to
1010011111001
According to the documentation the following Mathematica code is used to…
YaGoi Root
- 45
- 3
1
vote
1 answer
Save[] but without duplicate data?
I wanna be able to start my session by loading a bunch of data and then finish by saving everything.
Here's an example of what I've been doing: I have the function g[x_] := g[x] = x^2, I calculate g[1] and g[2], and I run Save["data.m", {g}]. Next…
H.v.M.
- 1,093
- 5
- 12
1
vote
1 answer
Saving functions in .m file(s)
Suppose that I have the function f[a][x_]:= x^2 and I want to save it in a .m file, then if I do Save["/path/",{x,f[a]}] doesn't work.
My first question is why it doesn't work and the second is what is actually the first argument of the f, i.e. the…
hal
- 783
- 3
- 14
1
vote
0 answers
Can I see a list of saved objects?
I created some functions in mathematica and saved them via Save["filename",symbol] It works just fine and loads the functions in whatever notebook I want them and I don't have to specify folder or package. Is there a way to see a list of saved…
Puzzled student
- 21
- 3
0
votes
1 answer
Execute code when it's saved
How do I execute code on save?
This is a similar question: Running a package automatically when it's saved
William
- 7,595
- 2
- 22
- 70
0
votes
0 answers
How to best save the result of a very long Solve, which took one hour, when the command Save itself takes more than 10 minutes?
Hi I have run one long Solve, which took one hour, and seems to have found reasonable results, 6 solutions E1 for a system with 8 variables, two of them which I suspect to be simple. Unfortunately, running then
Save["E1.m", E1]
Print["Ed =",…
florin
- 1,798
- 7
- 12
0
votes
1 answer
Save a certain number of decimal places to a file
I would like to save data to a txt file. I use for this
PutAppend[ " x= ", N[x], " y= ", N[y], "D:/Users/.../file.txt"]]
But the number of decimal places that Mathematica writes to the file does not suit me, I would like to have more decimal…
Mam Mam
- 1,843
- 2
- 9
0
votes
0 answers
Save the data in mathematica
I have been calculated some expansions with NIntegrate and NDSolve in Mathematica and I have a lot of them. Because the calculation of these results takes hours, I want to save it in a file of Mathematica and every time that I need it, just to…
Dora
- 1
- 1
0
votes
0 answers
DumpSave a variable in Do loop
I have the following code:
ff={"a","b"}
Do[
mm[ff[[i]]]=RandomReal[];
,{i,Length@ff}]
Do[
DumpSave["D:\\"<>ToString@ff[[i]]<>".mx",mm[ff[[i]] ]];
,{i,Length@ff}]
This gives
DumpSave::bsnosym: mm[ff[[i]]] is not defined as a symbol or a
…
Eisbär
- 1,476
- 7
- 14