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
Join us in building a kind, collaborative learning community via our updated Code of Conduct.

Questions on converting data, graphics, sound etc. from Mathematica into other file formats.

7
votes
1answer
64 views

Exporting graph object for later use

We are planning to analyze geometry of artery branch pattern. We convert the binarized image into graph object using MorphologicalGraph[]. To avoid the complexity ...
5
votes
2answers
145 views

Undesirable grid appears when ParametricPlot is exported as PDF

Writing: plot = ParametricPlot[{x, Min[1, 2] t}, {x, 0, 2}, {t, 0, 1}, PlotRange -> {{0, 2}, {-1, 2}}] I get: but if I write: ...
1
vote
1answer
25 views

Exporting Table format and strings not enclosed in quotes

The help file for format/Table says very clearly "By default, Export delimits text fields containing the field separator with double-quote characters." A simple ...
4
votes
0answers
35 views
1
vote
2answers
115 views

Export an image as pdf that acts as a link mathematica

Anyone knows if it is possible to export an image as a pdf and this image should act as a link to a website when one clicks on it form within a pdf viewer ?
0
votes
1answer
40 views

Padding a number doesn't work when transferring to LaTeX

I have some numbers which I calculate via some previous code. The calculation works fine. However since I want to compare it with experimental data I only need the numbers to a certain number of ...
2
votes
2answers
87 views

how to export a manually graph from mathematica

I draw Cos function using the code line : ...
4
votes
0answers
48 views

Export/Put and Import/Get

I have questions about importing and exporting that don't seem to have up-to-date answers anywhere. What's the difference between Export and Put? Which should I use if I care about how long it takes ...
2
votes
0answers
55 views

ViewPoint messes up Export?

Version: 11.3.0 for Mac OS X x86 (64-bit) (March 7, 2018) ...
0
votes
1answer
26 views

Add a line without quotes by means of PutAppend

I'd like to export string, for example, like this: "ZT[1,1]={"blabla", 0, n+13, 4*g1*g2/3 + g2^2};" to myfile.m and there i want to see: ...
2
votes
0answers
32 views

Problem with exporting PlotLabel using MaTeX in Parallel computation

Requires MaTeX, which can be found here. ...
2
votes
0answers
19 views
0
votes
0answers
23 views
0
votes
1answer
37 views

How to save the image generated by Plot3D as svg? [duplicate]

pic11 = Plot3D[Sin[x + y^2], {x, -3, 3}, {y, -2, 2}];Export["ff.svg", pic11] The generated svg diagram is very vague, why is this? How to convert the map ...
3
votes
1answer
22 views

Exporting/Saving Notebook with Non English characters to PDF

On a related question, I now have another problem with saving notebook to PDF. OS: Windows 7 SP1 English Ultimate MMA: 11.3 X64 The Chinese characters displays ...
1
vote
0answers
19 views

Saving in 2D and 3D in vectorial (pdf or svg) format

Good Day everybody, I have difficulties to save both 2D and 3D plots in vectorial format. I can get acceptable results if I save manually: righ-click on image, "Save Graphic as..." or "Print as...". ...
5
votes
2answers
49 views

Convert floating point numbers to string like sprintf/fprintf?

I am trying to export some floating point numbers into a csv/txt file. I would like to have a efficient way to control the space between numbers as well as the accuracy of the numbers, as we do in C: ...
2
votes
0answers
20 views

Displaying, exporting, and saving Grid with square cells

I am trying to save (export) to PDF. ...
1
vote
2answers
109 views

How can I make this code simpler, readable and more efficient?

I am running an iterative routine that I want to export to a file while each iteration is computed, instead of storing everything in memory and then exporting to a file. My solution is to write to ...
3
votes
1answer
57 views

How to avoid rounding error, when exporting numerical values

How to avoid the rounding error, when exporting data like this: ra = Range[0.004, 0.074, 0.0005]; Export["range.txt", ra] The result is this:
1
vote
0answers
40 views

FindRoot on a large system of equations

I need to solve, numerically, a very large system of equations (Logit-type). The system has one parameter $d$ which is numerically defined in order to find the solution. My code works, but it ...
2
votes
0answers
39 views

How to store the values of a function in a file

As it is well known, it is possible to define a function that remembers its values once its evaluated, using the following code: f[x_]:=f[x]=rhs During the day I evaluate f[x], for many x's, and I ...
2
votes
0answers
32 views

Structured HDF5 Export doesn't create any output

I tried to use this example to organize my data, but ExportStructuredHDF5[file,data] just doesn't create or override a file in the specified folder... Minimal ...
0
votes
1answer
40 views

Problem with resolution of exported image

I want to make a map (of Germany) with certain positions marked. This is just a MWE, in fact there are much more positions. What I did: ...
2
votes
1answer
51 views

Format FinancialData into MS Excel. How can I curate the data before exporting it?

My goal is to curate the following data before I export it as a CSV to open in Excel. I have downloaded financial data for more than one asset, like the following: ...
0
votes
2answers
82 views

Exporting result of calculation to file at each step of iterative routine

I am performing a calculation that involves a triple "For" command. My goal is to export the table of all values of some function (which depends on the three indices) to a data file for statistical ...
5
votes
2answers
100 views

Add several text files into one text file using Mathematica

I have twenty data files each contains 1000 lines ("a1.txt, a2.txt....a20.txt"). Now I want to add all these files to a single file and keep the line sequence as followed by the input files (first ...
3
votes
1answer
73 views

Splitting a text file into smaller text files by line numbers using Mathematica

Is it possible to split a large text file into smaller files by line numbers in Mathematica?
2
votes
1answer
49 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 -...
2
votes
1answer
72 views

Exporting a Manipulate expression to .avi and .gif

I've the following code: ...
5
votes
1answer
64 views

Weird Export of .M4A format

When Exporting .M4A format audio, the duration is always 1. It seems that the audio is fast-forward played... Is that a bug and how can I fix it? Sample code: ...
1
vote
1answer
57 views

Exporting a Grid over multiple pages

I have a large output currently in grids which I need to export to .pdf, with the grid centered on the page, as well as break over multiple pages. Ideally I am ...
2
votes
1answer
35 views

Space between elements using `Write`

I have the code: ...
1
vote
0answers
17 views

Real-Time Export of Data

So I was using a Genetic Algorithm to solve a problem. The inherit takes a lot of time to get me to the final answer, so I would like to monitor the process, and export the data real-time. The code is ...
3
votes
1answer
45 views

How can I get better formatting in ToString?

ToString (and thus Export) has a tendency to mangle the nice structure of Mathematica expressions as they are generally coded. ...
1
vote
1answer
38 views

Export StreamPlot to tikz

I have a table that I use to generate a streamplot using the command ListStreamPlot. I would like somehow to export the plot to a tikz file. This is because I will ...
1
vote
0answers
40 views

Mathematica stops working while exporting a graphic in pdf format. Why?

I have drawn a graphic and want to save it as a pdf file, but each time this message appears: Mathematica stopped working. Then the program is closed. I should mention that Mathematica worked for ...
6
votes
1answer
182 views

How to export a List with the values separated by a simple empty space?

I have this: list=Range[1,4] and I want to Export the values in a text-file. But the values should be separated by a single ...
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 ...
6
votes
1answer
123 views

Rotate 3D plot into animation

I know this is not the first question on creating an animation of a 3D plot, but I found no answer to the following question: How can I create an animated rotating plot with axes labels that are ...
0
votes
0answers
23 views

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

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

visualization of timedependent flux data

I am trying to visualize some electronic flux data for a quantum mechanical system. I have a file containing electronic flux values and coordinates for different timesteps in a quantum mechanical ...
1
vote
1answer
41 views

Trouble Importing/Exporting in MX format

I want to save some definitions to an .mx file in order to be able to load them quickly. However, I run into a strange problem. If I do, ...
0
votes
0answers
36 views

Raster ListDensityPlot with vector axes and labels

Is there an easy way to export a raster DensityPlot or ListDensityPlot but with vector axes, lines and label? I didn't find an easy answer in other questions.
1
vote
1answer
31 views

Compressing TIFF figure with constant resolution

I need to compress the TIFF figure "p5"(originally around 25 mb) in to less than 1 mb or as small as possible with constant resolution of 600 dpi. ...
2
votes
1answer
67 views

How do I remove {} in a exported .txt file?

This answer to this question, teaches us how to export the result of NDSolve to an Excel file. It is easyly adapted to the case I want a .txt file: ...
7
votes
1answer
162 views

How can I upload MeshRegions to Mathematica.SE?

I know how to upload images to Mathematica.StackExchange. But what about MeshRegions? That's something I'd like to do frequently. Best would also be a programmatic ...
0
votes
1answer
42 views

How to export numbers to txt in ScientificForm

I need to write data in scientific notation in a .dat file. For example Export["1.dat", {123.}]. I want to get 1.23e2 in ...
2
votes
0answers
82 views

Is it possible to get the original number from DecimalForm?

I'm trying to implement an efficient TSV exporter based on the code from this answer. It works sufficiently quickly but the problem is that OutputForm shows about 6 ...