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

2
votes
2answers
50 views

Import a column of data, make a matrix from it and export it WITHOUT curly braces

I'm new here and with Mathematica, too. I want Mathematica to import data from a txt file (it has one column of data). These entries are z-values. From this I want to make a matrix - 508 entries make ...
0
votes
1answer
38 views

Applying transformations to data coming from an STL file

I am very new with the use of 3D graphics in Mathematica, so my question might be very naive. I need to Import an STL file, apply transformations to it (rotation and translation), and export it back ...
10
votes
2answers
3k views

How to get Matlab data imported with the same dimensions?

I have some Matlab image data with the following dimensions (output is from Matlab): >> size(im) ans = 86 86 3 45 The data imports just fine ...
7
votes
1answer
335 views

ReadList can't read correctly

Bug introduced in 9.0 and fixed in 9.0.1 I'm trying to load some data into Mathematica from some files generated by fortran. But ReadList seems can't get the number correct. Here is a simplified ...
1
vote
0answers
32 views

How to avoid import evaluation until if wil return true

My goal is to import a data from url that depends of 1 parameter, this initialy value is null or undifined en yo have to selec some popup and then the variable has value, what is the method to do ...
0
votes
0answers
24 views

Error message from Histogram [closed]

I uploaded historical change of data (it is change in CDS spreads) and am trying to plot a histogram and get a kernel density estimation. I am executing the following ...
21
votes
2answers
1k views

How to build a bvh (a motion capture file format) player in Mathematica?

How to build a bvh player that can be used to visualize human motions in Mathematica? Any idea or sample code would be appreciated. ...
1
vote
0answers
27 views

Imported variables (.mx) are emptied occassionally (Linux, v10.0.2)

I have a severe problem with variables being "emptied" occassionally. I am not able to reproduce the behavior but this is basically what happens: 1) store list ...
1
vote
0answers
28 views

Why doesn't Import work with XOWA offline Wikipedia database?

I'm having trouble with importing HTML from XOWA offline wikipedia database. I set up a local server for datamining, but I can't access it with Mathematica. I can request a HTML page with ...
1
vote
0answers
35 views

Use of MuPad code into mathematica [duplicate]

Does somebody have experiences so as to transform a MuPad code into a notebook into mathematica ? I would like to export equations written in Mupad to Mathematica. Thank you for your help
-3
votes
1answer
60 views

Loading CSV file is slow

I'm trying to import a CSV file that contains the latitude and longitude of some USA routes, but the import process is very slow and Mathematica spent about 10 min importing it. A link to the file ...
12
votes
3answers
1k 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, ...
0
votes
2answers
92 views

String quotes elimination

I'm trying to import a .csv file that contains some points which are geo-positions, but the import gives me the points wrapped in quotes. Is there any method to get them as pairs of real numbers? I'm ...
3
votes
1answer
75 views

How is Precision of Imported Data managed?

I am working on a financial/banking type application and part of the work is to import numeric data of 15 to 20 digits of precision. I am having trouble determining the best way this should be done. ...
4
votes
1answer
119 views

Is there a way to embed a data set in a notebook?

I have a data set (currently a table in a .csv file). I would like to share this notebook with colleagues either as a notebook, or (even better) as a CDF document. Is there a way to embed the data ...
25
votes
3answers
2k views

Extracting values from nested rules in JSON data

I have been using Mathematica to analyse some data from the StackExchange API. It is conveniently available in JSON form, which Mathematica interprets as replacement rules. However, some of the rules ...
2
votes
3answers
125 views

Import Data using selection criteria

I imported a file (text and numbers) and made constructed this. e[[1,All,{1,2,3,4,6}]] Column 1 is the name of the state. How can I get a subset of this where, say Column 1 is not equal to "New ...
2
votes
1answer
30 views

BinaryWrite negative numbers [closed]

testList = {1, 2, 3, 4}; file = "test1"; BinaryWrite[file, testList]; BinaryReadList[file] Close[file]; Gives {1, 2, 3, 4} ...
2
votes
3answers
66 views

An extra { when importing a file [closed]

I am trying to import data from a file. {k0,{a0,b0,c0},{e0,f0,g0}} {k1,{a1,b1,c1},{e1,f1,g1}} MyList = Import[file, "Data"]; But I get a list with an extra "{" ...
2
votes
0answers
36 views

Open LabView's TDMS file?

How to open the National Instruments LabView TDMS files? Has anyone developed a library or code for easily importing these? National Instruments provide a DLL and specification for the format. There ...
6
votes
0answers
53 views

How to connect to a video stream?

Is there a way to get a current frame from video streams (especially from RTSP streams)? I would like to connect to a camera in my local network and get a snapshot from it to do some further ...
3
votes
1answer
147 views

How to sample n frames from a movie file?

I'm looking to import 100 image frames from an mp4 video file at roughly evenly spaced intervals. As $ImportFormats shows, Mathematica can handle Movie files: .avi, .mov, .qt, .flv Multiframe ...
1
vote
2answers
113 views

How can I import a table from a Wikipedia page?

I'm trying to import this table from a wikipedia page containing the list of lunar missions into a Mathematica as an Association. Here, I'm trying to use the new ...
6
votes
2answers
144 views

Import data from excel and store it permanently in notebook

I am trying to write the code for doing the following: by clicking a button, import specific data from an Excel file which I select through a dialog window; input a name for the imported data set ...
8
votes
1answer
580 views

Importing Excel Spreadsheet containing Array Formulas

Has anyone had any success with importing an Excel Spreadsheet holding an array formula into Mathematica? The Syntax I'm using is ...
12
votes
3answers
323 views

ToExpression fails with long nested string expressions

Consider the following conversion from String to Mathematica Expression: ...
1
vote
1answer
55 views

Convert spreadsheet (Excel) to *.csv during import

I have long lists of data in spreadsheets and have the problem that Mathematica crashes regularly during import of the .xlsx files. Is it possible within Mathematica to take a certain tab of a .xlsx ...
9
votes
1answer
587 views

Google Image Search in Notebook?

How can I use Google's image API to custom search for images and import them all?
1
vote
1answer
94 views

PDB Graphics Options: Opacity and Scale to superimpose on 3D point plot

I am trying to superimpose a pdb file into a 3D plot of points extracted from the pdb model, while making the pdb somewhat transparent for easy viewing of plotted points. My problems are as follows. ...
6
votes
1answer
56 views

Importing hex values from a text file

This question appeared maybe an hour ago, but was removed by OP. I'm still interested in a solution. Suppose we have a text file with hex numbers separated by tabs (or spaces): ...
15
votes
2answers
151 views

HDF5 importing large arrays

I have some computations that output a 300,000,000 element array of long unsigned ints, so about 2.4GB, in an h5 file. Mathematica handles files south of 2GB fine, albeit taking very long to import ...
1
vote
1answer
48 views

Importing a spreadsheet with infinity values from Excel

I have imported a spreadsheet from Excel that I want to use as an adjacency matrix. I want to use this matrix as the argument in WeightedAdjacencyGraph, so I have ...
7
votes
2answers
192 views

How to copy and paste $n$ lines from a text editor to $n$ cells?

If I copy from an external editor to Mathematica notebook a block of lines (with a code) line 1 line 2 ... line n then whole text is copied to a single cell. I ...
11
votes
1answer
179 views

Any solution to transfer data between Python and Mathematica

I think Mathematica handles .mat file not very well, python is pretty good at this kind of jobs. In this site, there are plenty of question related to calling Mathematica from Python, or calling ...
1
vote
2answers
89 views

Plotting data from multiple text files

I'm new to mathematica and stack exchange, so any help would be appreciated. I want to plot a bunch of data from text files that contain a lot of extraneous data. I have a hundred files with different ...
8
votes
2answers
318 views

AJAX-style HTTP calls triggered by a variable change

I'm trying to create a dynamic InputField that would autocomplete the address as I type it into the field, by calling Google Maps' GeoCoding API on every change of ...
3
votes
2answers
150 views

Why are dictionary keys reordered upon JSON import?

After importing a JSON file, Mathematica changed the order of the fields. For example, I downloaded a sample file from: http://api.openweathermap.org/data/2.5/find?lat=55.5&lon=37.5&cnt=10 I ...
0
votes
2answers
63 views

how to read a list from a file which has mixed types of data?

I need to read in a file with the first several lines reading as ...
2
votes
1answer
41 views

Cloud, manipulate based on a external dataset

My question is about creating a Manipulate based on a external dataset (in my private Cloud) and publish it in the Public Cloud. ...
1
vote
0answers
40 views

How to Import .ibw files in Mathematica

Can anyone tell me how to import .ibw (igor binary wave) into Mathematica?
0
votes
0answers
67 views

Does ListPlot have a bug when plotting large lists?

I was able to plot the first 13315 points of my data, but as soon as I try to plot one more data point, it no longer works. If you load the data contained in the google doc file 19857 pairs of data, ...
0
votes
0answers
39 views

How can I use mathematica to get the translated result from the webpage “google translation”? [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 string on the text. I know how to realize the ...
0
votes
2answers
47 views

Exporting and Importing solution sets from NSolve

I have a rather large data set that I need to solve for, then save to my hard disk and import in the same format at a later time. This proves to be tricky. I use ...
4
votes
0answers
97 views

How to speed up import of large csv table?

Loading less than 2 gB of csv data took 5.29 hours: ...
21
votes
2answers
649 views

Import an RDATA, SPSS, SAS, or STATA file into Mathematica

I would like to import the World Value Survey data file into Mathematica, but it's only given in spss, sas or stata formats, which are statistical analysis softwares format I think. I can't get to ...
13
votes
1answer
593 views

Data acquisition from a Measurement Computing USB device

I would like to use Mathematica 9 for to acquire data from a Measurement Computing (MC) USB-201 analog to digital (and other) device for classroom demonstration. I do not have a budget to buy LabView ...
5
votes
1answer
76 views

Import of data from ODS

With SetDirectory["~/Downloads"]; ifile = "test.xls"; TimeConstrained[idata = Import[ifile, {"Data", 1}], 5]; I can achieve the desired result of importing the ...
2
votes
1answer
85 views

Saving an XMLObject imported inside a notebook [duplicate]

In a notebook, I import an XMLObject from a html file with this code line : XMLData = Import["Z:/XXX/XXX/XXX.mw", "XML"]; In order to have all the data in the ...
0
votes
1answer
49 views

Problem with ReadList, record separator is not working

I have entries in a file with the following form: 3579038 2cc567cda3afd5e1d5406152e8ba77024c46ecda 2742564 4202599 093e88c26bd1637d12253115bd5a8a81531ba68f 2742821 3579039 ...
1
vote
1answer
62 views

Import a jpeg file and a mov file and display them side by side

I am planning to use Mathematica for a presentation. In one of the slides I need to place a jpeg file side by side to a mov file. ...