Questions about getting data, files, images etc. from various formats into a form that can be read, tranformed and manipulated by Mathematica

learn more… | top users | synonyms

0
votes
0answers
27 views

How to Extract Continuous .png Graph by Constant Piecewise Velocity? [on hold]

Time-Potential Data where the where the absolute values of axis do not matter but the points have possibly an equidistant piecewise velocity when comparing to the thread because regular jumps in the ...
0
votes
1answer
58 views

Importing Data to interpolation

I have an external file in extension XLS with looks as follows: This file can be obtained by the link below: Velocidade Angular With certainty this file is generating a list inappropriate for the ...
1
vote
0answers
22 views

How to import specified current statistic to the Mathematica

There is amazing site about statistic of everything, www.worldometers.info. I want to import specified current statistic to the Mathematica for instance how to import dynamic "current world ...
1
vote
0answers
31 views

Arrange of several files

I am struggling to import my data. There are 400 files in CSV format with names organised by date like: Table1_20111003_YYYY_MM_DD_0000.dat. In each file over 20 colums and 86400 rows (seconds of ...
44
votes
5answers
6k views

How can I extract data points from a black and white image?

Consider the following graph (source): Is there any way to extract the data points from this image in a semi-automatic way? I have seen, and tried the methods suggested in this question, but they ...
1
vote
2answers
65 views

Reading simple data csv file containing “e” and “i”

I can't find a way to properly read a csv file containing complex numbers in the following form: ...
5
votes
1answer
61 views

How can I generate a graph from a NetworkX JSON

I have done some network generation and analysis in Python NetworkX. I do most of my visualizations with D3, but for publications I would like to generate some graph plots with Mathematica as well as ...
7
votes
2answers
505 views

How to speed up interpreting numbers from strings?

In processing a large text file I have batches from ReadList of 100,000 Records of the form. ...
5
votes
3answers
260 views

How to measure Sample Rate?

How do I measure the sample rate of an imported file in Mathematica? I imported the WAV file: solo = Import["solo.wav"] When I wrote: ...
2
votes
1answer
60 views

Order of importing data from files

I have many text files numbered from 1 to 1 million in numerical order. Within each text file is 5 columns of data (TAB spaced) with many rows. I effectively want to take the minimum value from each ...
1
vote
0answers
39 views

How to Import file from subdirectory of ZIP file?

I have a "ZIP" file that contains directories. Import["arch.zip", "FileNames"] (* {"subdir\\test.txt"} *) However, ...
1
vote
0answers
69 views

decimal point changes in mathematica after importing data from excel

I am trying to import data from excel into mathematica. It works fine except that the values of all the variables after the import into mathematica change at 6th decimal point. For example, variable ...
3
votes
0answers
42 views

Parsing a caffe prototxt file?

Caffe has its own visualization tools, for instance you and draw all the layers in a network easily like so: But I wanted to analyze a network structure myself in mathematica, so I started to write ...
1
vote
3answers
95 views

Importing data from notepad to mathematica

I have a set of numbers in notepad that I want to import into Mathematica as a list. I could do this manually, but it will take forever, and my hands are getting tired. My issue is that I'm trying to ...
1
vote
1answer
97 views

How to read a part of huge matrix saved in a TXT file as single expression?

I saved a huge matrix of numbers with dimensions {400, 4001, 2} using Put and got a TXT file formatted in the following way: <...
1
vote
1answer
38 views

Importing an .eps file failed in the latest version of mathematica

It was quite straight forward to import an .eps file (also pdf and other formats) into a script, with the version 10.0. that I had before; but, since I upgraded my Mathematica to the latest version 10....
13
votes
1answer
306 views

How to use Get on a folder

In the documentation for Get it says: If the file found by <<name is a directory, the Wolfram Language will try to ...
0
votes
1answer
30 views

Graphics, Import and Inset combined

I need to write a word on a figure, which I have saved as fig.pdf. 1) I import the pdf file to mathematica: a = Import["fig.pdf"][[1]]; 2) Following the ...
0
votes
1answer
71 views

Extracting the data of each frame from an AVI file

What's the most straightforward way to "Import" the data of an AVI video? For instance, if I record a 30 frame per second video, then after 10 seconds I would have 300 frames. How can I import the ...
13
votes
3answers
803 views

Is it possible to insert an animated image into Mathematica notebook?

I find it very convenient to use Mathematica notebooks to organize the codes + results. I was wondering if it is possible to insert an animated image (say an animated gif) in the middle of a notebook....
0
votes
1answer
54 views

Manipulation of imported Datafile

Since I am solving a differential equation in a for loop with NDSolve ...
5
votes
2answers
475 views

Image Rotation, Line Symmetry

I'd like to import an image, superimpose it, reduce the opacity of the overlaid image, and then use a manipulate to rotate the top image to illustrate rotational symmetry. The image below is using ...
29
votes
3answers
2k views

How to place an image inside a notebook, with the minimum memory footprint?

When creating a notebook with images, like photos, the file tends to quickly get big, which makes it difficult to use the notebook format for training material containing a lot of images. Are there ...
1
vote
2answers
109 views

Specify the color of each residue in a protein (PDB)?

I'm importing a *.pdb file containing a single protein. Mathematica automatically produces a plot of the protein. I want to specify the color of each residue independently, in this plot. Is this ...
26
votes
5answers
2k views

Fetching data from HTML source

I want to generate a couple of plots/graphs with Area 51 statistics. Since Area 51 doesn't work with the SE API, I'm forced to find another way to get the information I want. That other way is with <...
3
votes
1answer
107 views

reading FIT files in Mathematica

Has anybody been able to parse FIT files in Mathematica? The format was developed by Garmin and is used to store data from GPS devices and workout equipment. Details can be found at https://www....
1
vote
0answers
59 views

Convert Java code to Mathematica [closed]

This is in reference to this question from Math SE: here. Is there a way to import Java code into Mathematica? I'm looking for either: A conversion utility A method of manually converting A way for ...
1
vote
0answers
55 views

How can I use Mathematica to get the translated result from the Google Translate webpage? [duplicate]

I would like to use Mathematica to automatically translate some input texts, from one language to the other one, then apply some manipulation of a string on the text. I know how to realize the ...
1
vote
2answers
67 views

How to read rows and headers separately into a dataset?

Suppose that the information for constructing a dataset is split over two separate files: one file contains the numeric data, and a second file contains the names of the columns. Is there a simple ...
1
vote
3answers
72 views

How to Import and Export as a multidimensional array

I have 10000 matrices and each matrix is 3x3. So Dimensions[data] gives me {10000,3,3}. I saved this into a file with Export["mydata.dat",data,"Table"] Then when I imported it using Import["mydata.dat"...
10
votes
1answer
4k views

How to extract sample values from an imported WAV file?

Suppose I read a file with B = Import["something.wav"] Now how can I obtain a list of sample values?
6
votes
1answer
80 views

SemanticImport and zip files

I have looked through the documentation and don't see this addressed, but since some of you seem to have knowledge of undocumented features, I thought I'd ask. There is a zip file at http://www....
0
votes
1answer
49 views

Importing data from a MATLAB file to MATHEMATICA [closed]

I have been trying to import some matrices from MATLAB to MATHEMATICA. The matrices are the output after I run the MATLAB file. I had saved that file in .MAT format and trying to import it in ...
2
votes
2answers
115 views

How to copy Coordinates of “Get Coordinates” in Figure?

I am trying to reproduce the answer here about Recovering data points from an image. I click the figure and press "Get Coordinates". I would like to copy the four coordinates by CTRL-C and then paste ...
0
votes
0answers
35 views

Why here does Import[file] produce an error LinkOpen::linke:? [duplicate]

In the folder $BaseDirectory\\Kernel I have a file init.m, who calls a customized initialization package ...
4
votes
1answer
78 views

Export and Import with special unicode characters

I exported a list of characters say: ClearAll[t, r, \[Theta], \[Phi]]; Export["hello.txt", {t, r, \[Theta], \[Phi]}, "List"]; the file has the correct symbols ...
1
vote
1answer
64 views

Getting raw data using DcRaw

I'm using dcraw program to import raw image data to Mathematica. When I use Run["dcraw -4 -D -T "image.nef"] (which converts it to an unprocessed linear TIFF file) ...
3
votes
3answers
685 views

Why does a certain CSV file import properly into LibreOffice but not into Mathematica 10.0?

I'm working on a project involving data manipulation and it involves working with CSV files. I know that the files are properly formatted as when I import them into LibreOffice, all of the columns ...
-1
votes
1answer
63 views

How to run code and do data analysis in mathematica [closed]

I am a beginner in Mathematica. I'd like to do something like the following: write code- ouput- write code- output... But when I created my own notebook and copy the code above, I don't know how to ...
-1
votes
1answer
62 views

How to import vector matrix from file? [closed]

how can I import matrix of 3 dimentional vector from a txt file? I know how to import simple matrix of number, but I dont know how to import matrix of vectors and what type of data should be in my ...
3
votes
2answers
122 views

How to Import This XYZ format file

Here is the .XYZ format file NP3D.XYZ Somehow i cannot import this file.It return an error box :- "Cannot Import Data As XYZ Format." it contains 1000 snapshot of 10 Carbon particles coordinate ...
5
votes
1answer
153 views

Efficiently importing data into Mathematica

I have a graph data file infile.txt. 3 2 0 1 1 2 3 2 0 1 2 1 3 2 1 0 1 2 3 3 0 1 1 0 1 2 3 3 0 1 1 0 2 1 3 4 0 1 1 0 1 2 2 1 ...
1
vote
0answers
31 views

embeding an image in a cdf deployment

I would like to embed an image into CDF. Import function just import the function from a pathway but I would like the image to be present in the CDF or nb file as a part of it not importing. ...
1
vote
0answers
43 views

Importing replacement rules from files [closed]

I have some replacement rules written in different files. I am giving an example with two such files. cat input1.m a1 -> b1 cat input2.m a2 -> b2 Now I ...
5
votes
0answers
32 views

Is there a way to use iframes in a notebook?

For me, mathematica online is totally unusable, but the EmbeddedServices would be great to use. I wish that these functions worked in Mathematica, is there any hack anyone can think of to get these ...
3
votes
1answer
71 views

How to Import a password protected Excel (XLSX) file?

I have a password protected Excel (XLSX) file that I would like to Import into Mathematica. Is there a hidden option in Import ...