Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [save]

The tag has no usage guidance.

0
votes
0answers
12 views

Incremental write [duplicate]

If I have two loop i & j, and I need record time and value of i, j incrementally during each round, how to modify the ...
5
votes
1answer
169 views

How to save/load (export/import) symbolized variables?

I have a large number of variables/functions with subscripts and use definitions with memoization to avoid recomputing them within a kernel session, but I cannot figure out how to export them all for ...
1
vote
0answers
46 views

Saving data for future use

I am trying to combine a few plots of complicated functions in different ranges into a single plot by using Show [ ] . Each of these plots take some hours to generate. Because of this I want to be ...
2
votes
1answer
32 views

How to save multiple expression in a single file with specified names for the expressions

I could not find any reasonable answer for the following question. (https://www.physicsforums.com/threads/mathematica-output-display.386890/). I have expressions: ...
6
votes
2answers
133 views

DumpSave'ing while lengthy program runs

tldr: is there a way to load all files following a structure/append to DumpSave file i would like to run a script following the structure: ...
0
votes
1answer
35 views

Run a command each time a file is saved [duplicate]

Is there any way to get Mathematica to run a function each time I save a file? So either by ctrl-s or by the 'save' command in the file menu. Then I could, for example, ask it to make a copy of the ...
3
votes
1answer
46 views

How to retrieve values of a function from a file

I defined the following function: q5e8[z_?NumericQ] := q5e8[z?NumericQ] = NIntegrate[Sin[(2 5 10^8 - v) z]/z^5, {v, 0.1, 2 5 10^8}] As you can see, it is a ...
2
votes
1answer
60 views

Store large symbolic data in a binary format efficiently?

As far as I understand, the Binary Data feature of Mathematica can efficiently store raw numbers or elements of a given type to binary files. Is there a way to store a large symbolic expression (read -...
6
votes
1answer
37 views

Trace and TracePrint are slow, How to Trace to a file for speed

Trace and TracePrint generates or prints a list of all expressions used in the evaluation of its argument. For complicated ...
0
votes
0answers
36 views

Save output of Mathematica batch job to file

bsub "math -script input.m > output.out" runs the Mathematica command in input.m as a batch job and should print the output ...
0
votes
0answers
50 views

Using data of a compiled code in future [duplicate]

I have run a huge amount of code to find a 9 by 9 matrix called A. I want to use elements of this matrix in future when I open the Mathematica again. Is it possible? How can I do that? An step by step ...
0
votes
0answers
23 views

`Get` files depending on the string input [duplicate]

Let's suppose I have a code like this: ...
0
votes
2answers
64 views

Save data from loop each determinate time

I have a Do loop then I want to Save data from this loop each x number of iterations. My Do ...
1
vote
0answers
63 views

What is a good way to store TimeSeries objects?

This is a question about proper ways to save and retrieve TimeSeries. I am processing data from two separate sources and compile around 150 ...
0
votes
0answers
84 views

Save Notebook as Wolfram Script?

It is possible to automatically save a notebook as a Package (see https://mathematica.stackexchange.com/a/1370/5340). The generated package file only contains the cells marked as Code. This has the ...
0
votes
1answer
35 views

Getting Values of Replace Elements in an External List

I have a list of elements replaced with values: list = {A-> A1, B-> B1, C-> C1,...} saved as an external file using Save...
2
votes
1answer
57 views

How to save values in dynamic fields?

I created a notebook with this line: Grid[{{InputField[Dynamic[x]], Dynamic[x^2]}}] Then, I filled a certain value instead of "x". Then, I closed Mathematica ...
1
vote
2answers
92 views

Saving different plots' data presented in show

I have shown several plots by Show function: Show[p1, p2, p3, p4, p5, p6, p7, p8, PlotRange -> All] I need to save data of all plots in one ...
1
vote
0answers
41 views

Why Mathematica says notebook “has changed outside of Mathematica” when saving to text file?

I wanted to export the notebook to plain text file. Given notebook foo.nb, I noticed each time I save the notebook to foo.txt, ...
0
votes
0answers
41 views

Cannot save plots, WindowSize error [duplicate]

Every time I attempt to save a plot by right clicking and clicking "Save Graphic As..." I get an error "The specified setting for the option WindowSize cannot be used". I am completely at a loss to ...
4
votes
1answer
48 views

How can I see what Get restored?

Say I save variables x, y, z using ...
1
vote
1answer
53 views

How to avoid this kind of error saving graphs? [duplicate]

I can´t save graphs 1 month ago. (I must capture graphs for use it) How to avoid this kind of error when you are saving the graph? Trying to save this graph: How change x labels data in ...
1
vote
2answers
96 views

Interpolate and save a vector function

i have a vector function as: $f:\mathbb{R}\longrightarrow \mathbb{R}^{n}$ for example: ...
0
votes
0answers
77 views

How to save Image or Graphics in Terminal? [duplicate]

In my Linux computer,it can't save Image or Graphics to picture format such as ...
1
vote
1answer
51 views

How to create file names using parameters defined in my code

In the first line of my code the values of m and n are decided. After running it, three important lists are generated, say ...
1
vote
1answer
76 views

Backing up and restoring all Mathematica notebook variables using 'Put' '>>' and 'Get' `<<`

As discussed here and here, the state of a notebook can be backed up by saving all variables using: DumpSave["backup.mx", "Global`"]; These variables can be ...
0
votes
0answers
49 views

DumpSave a variable in Do loop [duplicate]

I have the following code: ...
0
votes
1answer
62 views

Alternative to Dump Save

When dealing with large matrices I like to store them in the memory once for all, such that when I restart Mathematica I do not have to wait for a very long computational time of order of minutes. To ...
0
votes
0answers
48 views

Text Display doesn't save in version 11.1

I have the problem that my changes to the display style of cells doesn't save with the notebook. When I convert a cell to text-display and check before saving I can see that the style is set as text-...
5
votes
2answers
324 views

Symbolize Does Not Work in `.m` Files or What?

I have a .nb (notebook) file which I should convert to a .m (mathematica package) file to run it remotely from command line of a ...
3
votes
0answers
84 views

Simply save a polynomial to a text file, with a symbol change I->%i and w/o NumberMarks

I must be really missing something here because I've tried many things on this link: How do I save a variable or function definition to a file? but still wind up with something I don't want. I have ...
1
vote
0answers
37 views

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 ...
1
vote
1answer
65 views

Scheduled task to save my notebook every 30 seconds? [duplicate]

I keep crashing Mathematica and losing cells and textual data that I'm typing. Instead of having to remember to hit command+s all the time, I'd like a scheduled task to save my notebook every 30 ...
4
votes
1answer
42 views

Stop PaletteNotebook from asking to save changes

I have some code, similar to that from this question (not sure where I modified it from, don't think it was actually that question) to open a simple dynamically refreshing palette showing the ...
0
votes
1answer
79 views

Save only RHS of equation

If I have an equation in Mathematica, say f=a*x+Exp[x] is it possible to save only RHS of the equation into a text or mx file, so that later I can load it and ...
4
votes
1answer
126 views

Saving and loading lists of interpolating functions fast and cross-platform

Is there any way to save and load several lists of interpolating functions efficiently and cross-platform? I want to save the resulting interpolating functions of NDSolve which takes very long to ...
1
vote
1answer
119 views

Persistent memoized functions [duplicate]

I'm inspired to make use of "remembering the function values" technique from here: Functions that remember their values The only question is: how can I save the function, along with its values stored ...
0
votes
2answers
104 views

How do I save the generated 2d random array for the next use? [duplicate]

I generated a 2d random array in $x-y$ plane with L = 10; random = Table[{x, y, RandomReal[{-1, 1}]}, {x, 0, L, L/10}, {y, 0, L, L/10}]; Now I want to save it ...
1
vote
0answers
75 views

Any possible to save a 'partial' result of NDSolve when it was aborted due to insufficient memory?

I have run a NDSolve code for an extremely long time. Unfortunately, it was aborted because there was insufficient memory available to complete the computation. At ...
1
vote
1answer
81 views

Troubles with showing axis after saving in EPS

I'm trying to save a picture in EPS and then to put it into my LaTeX document. But when I put it the left axis is not shown. How do I fix it? (look at the screens) If I save the image in JPG, there'...
1
vote
0answers
52 views

Printing definitions properly

GeneralUtilities's definition printing functions are very useful, I find them much better than Save and friends because they format the code properly. However, ...
2
votes
1answer
118 views

Get (<<) Evaluate File Name

This seems like a simple question due to lack of experience, but I can't seem to find an answer through searching. I am trying to read back a symbol from a DumpSave:...
1
vote
0answers
48 views

Save a Mathematica notebook evaluated [duplicate]

My notebooks can take some time to evaluate and by quitting Mathematica, I have to reevaluate every definition I've made once I restart Mathematica. Is there a way to tell Mathematica to save the ...
0
votes
0answers
42 views

How can I “save” a function? [duplicate]

If I create a function, for example: ...
4
votes
2answers
216 views

Easier way to save images? [duplicate]

I seek to save my plots without having to save them one at a time. To give you an idea of what I am working with. I am dealing with the eigenbasis of a 50 by 50 tridiagonal matrix. I have plotted each ...
-1
votes
1answer
107 views

When NSolve for X, Y, only output solution for X

I have an NSolve with two equations and two unknowns (X,Y). There is a unique solution. NSolve currently gives me the solution pair (X,Y). But I only want to read out one of the variables (say X). ...
3
votes
1answer
547 views

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.
13
votes
1answer
218 views

How to write crash-robust code?

When a notebook crashes all the work I was doing is lost - I'd like to ameliorate this situation! Is there a way to decorate a symbol so that it is saved to disk whenever it changes, or after a ...
3
votes
1answer
478 views

Saving file as .m causes it to save as comments

I am attempting to create a Package and so am saving a notebook with the code from Mathematica's example ...
0
votes
1answer
38 views

How can I name to a saved file with the numerical values of some specific parameters? [duplicate]

I'm using some parameters to determine the elements of a list. I want to save this list with DumpSave, but I need to name it with its parameters. For example, I use the following parameters ...