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

learn more… | top users | synonyms

3
votes
1answer
104 views

Saving a text file with an unknown extension

I need to export a file with the extension .mac (short for macro in an external program), though it is essentially a text file (saving .mac in Microsoft notepad works fine). However if I try ...
26
votes
3answers
1k views

How to do http POST in Mathematica?

The Import command lets you do a HTTP GET from a URL, like this Import @ "http://merkosoncampus.com/wp-content/uploads/2011/05/higgs-boson.jpg" This sends an ...
4
votes
2answers
171 views

How do I export a text file with strings on different lines?

I would like to Export a text file, and use paragraph / ENTER commands to place different strings on different lines. Say we have three strings - str1, str2, and ...
11
votes
3answers
699 views

How can I transfer mathematical expressions between Mathematica and Maple?

Is there a simple way to copy mathematical expressions between Mathematica and Maple (or at least in one direction)? I mean only expressions built from numbers and predefined mathematical functions, ...
1
vote
1answer
157 views

Export list as a .csv file, but not seeing the commas

My goal is to export a list of numbers into a file, with a comma between each value. Executing the following commands seems to produce a file with a new line between each entry. ...
7
votes
3answers
432 views

Image of input and output cells is not exported correctly

Wolfram Blog uses PNG images to display input and output cells in a notebook. For example, the following is an image from Samuel Chen's post: I should be able to produce a similar image by ...
1
vote
2answers
77 views

Export with different address

Is it possible to use the Export[] command and add another address other than the usual Home directory that is used?
4
votes
2answers
202 views

Add blank line before end of file with export

I have a list of points (e.g. {1.2,0.4}) which I export to a file using ...
-2
votes
1answer
202 views

Importing a stack of images [closed]

I have a stack of images with the file names C0001996_0000 , C0001996_0001 etc. In total I have $600$ images. I would like to ...
3
votes
0answers
232 views

How can I create jpeg images of a given file size?

Cross-posted at Wolfram Community I would like to have a function makeJPG[megabytes_] that generates random jpg images of given file sizes with itf filesize (in megabytes) watermarked on the image ...
0
votes
0answers
125 views

The /. syntax in numerical methods [duplicate]

I have an analytical approximation method for solving an ODE and want to compare this to an NDSolve solution, but the syntax is confusing me. To get the solution from NDSolve, I define the ODE as eqn ...
6
votes
2answers
212 views

Not FullDefinition for Save. MachineID not Protected?

Is there a way to set what symbols's definitions I do not want to store? Consider the following code: ...
1
vote
0answers
175 views

Script with command line argument

As a test I want a simple script to take a command line argument and print it to a file: ...
3
votes
1answer
229 views

how to delete specific data from text file and then update it

I have a large text file. I read data from text file one at a time and check whether data agree with my condition. If not I want to delete that data in text file and update it. For example say my ...
0
votes
1answer
84 views

Export a Grid in a xls file naming the sheets

I try to export two grid in a same xls file, naming the sheets. This is an exemplification of my issue, and it doesn't work. ...
6
votes
2answers
2k views

Export animation of a Manipulate autorun sequence?

I've got a Manipulate that does a vector field plot. Basically a function that returns a list of Graphics objects and a couple of sliders: ...
1
vote
1answer
428 views

Saving Animate[…] as GIF using Save Graphic As

Is saving an animation as simple as clicking "Save Graphic As..." in the right-click context menu of the animation? It doesn't seem to work for me—the file naming dialog comes up and I click ...
0
votes
1answer
94 views

Exporting summation of interpolating functions to excel

I search the forum and found a question about exporting interpolating functions to excel. Unfortunately, I can't use it to export the results to excel. This is the equation : ...
1
vote
2answers
436 views

How can I produce multiple column data for export?

I have data produced by the following code: ...
2
votes
1answer
384 views

Writing to file as it goes [duplicate]

I was wondering if there was a way to write data to a file, during a Do loop, without having to wait till the end. I have written a code which scans over many parameters which get plugged into many ...
2
votes
1answer
131 views

How to prevent Grid from breaking the line upon export

I want to create a legend for my plots (a mixture of RegionPlots and ContourPlots). The legend should show the meanins of colors as boxes with text in them and the meaning of contours as framed number ...
2
votes
2answers
174 views

Exporting graphics without X server

I have a Mathematica installation on a Linux server that is intended to be used for batch processing. Some of the things that will be processed will include rendering of graphics. However, if I use ...
4
votes
1answer
109 views

“Save as (html)” and still render Input cell code as text?

When I' m testing on this post' s method I found some problems. ...
7
votes
1answer
368 views

How can I use “Save as (html)” and still render code as text?

I use notebook "Save as ... (html)" to convert my .nb to web. Formulas and plots get converted to images, which is fine. But code (input cells) get converted too into images. I would like people to be ...
2
votes
1answer
167 views

Writing CSV or alternative

I've tried to export a list to a CSV file. I shut it down after about 20 minutes of processing. The list has 261,000 rows and 30 columns. I finally exported it to a txt file and its size was 111 ...
5
votes
1answer
162 views

Programmatic generation of enhanced (Enterprise) CDF

How does one PROGRAMATICALLY generate enhanced CDFs under an Enterprise license? Undocumented options to CDFDeploy[] perhaps?. Wizard works fine for me, but attempts to do this programatically (from ...
0
votes
0answers
255 views

Mathematica 9 link in OriginLab

Hi (I am an absolute newbie), I need to send Mathematica data to the program OriginLab to plot and change the graphs. Does anyone know if it is possible to send data from Mathematica 9 via ...
0
votes
1answer
101 views
0
votes
1answer
249 views

Export of 3D Plot

I finally got my 3D Graph :) Unfortunately, when I export I get a bad image quality. How can I export the image without the white stripes? Here is the code for reproducing the error ...
3
votes
1answer
307 views

how can I convert a Grid object to a Graphics object?

I have a figure (which is by combining different plots) that I generated using Grid[]. The problem is, I want to specify the ...
0
votes
1answer
39 views

Evaluate a list of Expressions from file

I have a list of expressions in a text file. I would like mathematica to evaluate and export the results at the end of the same file or in a new file. The expressions are in seperate lines in the text ...
11
votes
2answers
694 views

Maximum size of TIF files in Mathematica

I have a question concerning the maximum size of TIFF files Mathematica can handle. According to the TIFF 6.0 specification -revision 6.0 (see: ...
0
votes
3answers
361 views

How to export a header before the data in the result file?

I would like to export a phrase to my result data as a heading. I'm exporting the data correctly with Export["file.dat", table]. But I'm doing several ...
1
vote
1answer
109 views

Exporting XML Data

I am trying to convert a bunch of text files into structured XML files. Using string expressions I have extracted data, so I have: ...
2
votes
1answer
284 views

Exporting PDF file - incorrect graphic [closed]

I export graphics to PDF using: Export["/path/figure.pdf", plotname] It gives me more than enough quality for PDFLatex. But somehow, some exported plots have ...
2
votes
2answers
286 views

How to export a table of complex numbers?

I'm having problems exporting a table of complex numbers. I have: ...
7
votes
1answer
178 views

Error while exporting to Excel with named sheets

Using Mathematica v9.0.1 This example is from the docs: ...
3
votes
1answer
112 views

How can I export definitions of several symbols to a single file?

the problem related to this question What I want to do is to Export definition of several symbol into a single file. The reason I choose ...
5
votes
0answers
268 views

Mathematica inserts extra \left and \right for absolute values in LaTeX output

Type the following in a Mathematica DisplayFormula cell(other styles may also encounter this problem): Esc+l+|+Esc and Esc+r+|+Esc, and save as LaTeX. Note: See the difference of the character ...
1
vote
1answer
49 views

Export and Import with graphics characters

I exported a list of characters say: Export["hello.txt", {t, r, $\theta$, $\phi$}, "List"]; the file has the correct symbols when opened with a text editor, however, when I imported it with ...
32
votes
4answers
4k views

How do I save a variable or function definition to a file?

Is it possible to save a function which was created via Interpolation of some data in such a way that I can use this function in a new Mathematica session without ...
1
vote
1answer
104 views

Exporting a histogram to PDF in without rasterising it

How can I export a histogram without rasterising it? The labels and axes seem unaffected, but the bars themselves are pixelated when I zoom into them in a PDF viewer. For example, if I run ...
6
votes
1answer
850 views

Possible to export Excel formulas?

I would like to export an .XLS file complete with data and formulas. Is this possible using Export? For example, here is data and a formula :- I can import ...
1
vote
1answer
141 views

Exporting a plot without drawing it

I'm trying to create a rather big 3D image and export it. Currently, I create the image then display using Show, then use ...
2
votes
2answers
168 views

Modifying imported 3D file

Since I am visualizing my work using Mathematica, I import some 3D models of molecules to my notebook. So, the question is, is there any way to modify somehow that imported models inside Mathematica ...
2
votes
0answers
104 views

How can I set id attribute of elements when I export an SVG file?

Suppose I have a Mathematica graphic such as g = Graphics[{Disk[{-1, 0}, 1/2], Rectangle[]}] I would like to be able to export this graphic from Mathematica ...
7
votes
1answer
221 views

Is there a way to convert mathematica code to OpenMP or OpenACC?

I see that Mathematica has limited support for things like OpenCL and CUDA, but what about other standards like OpenMP or OpenACC?
7
votes
1answer
468 views

Exporting a sequence of graphs as video efficiently

I have a sequence of graphs that are being created within Mathematica which I'm exporting to create an animated plot of the graph, as follows. ...
38
votes
2answers
1k views

My donut has holes in it!

More than one hole, I mean… I’m trying to export from Mathematica into the X3D format, with the longer term goal of generating 3D figures for PDF inclusion. But I'm stuck at the first step: ...
7
votes
2answers
740 views

How do I save my animation/manipulation in pdf?

Is it possible to presserve my animation and manipulation plots in the pdf?