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 [import]

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

9
votes
2answers
160 views

How to import python pickle *.pkl?

I find some ELMo-models on github. I want to use the Simplified-Chinese version: http://pbmpb9h15.bkt.gdipper.com/zhs.model.tar.xz But these files were saved as python pickles. I want to import ...
4
votes
0answers
39 views

Weird behaviour when importing a mixed graph from GraphML file

Consider a mixed graph G1 stored in GraphML file: ...
2
votes
1answer
34 views

How to read the files inside of a tar file without untaring it?

I have a tra.gz file which contains many ascii format files insdie. I would like to read those ascii files without untaring the actual tar file. I know it can be done in python easily but is it ...
-1
votes
1answer
51 views

Performing a nonlinear fit from data imported from a text file

I have a text file data that I imported and I want to fit it with a given equation. I tried to fit but it did not work and gives Here is my code: ...
12
votes
1answer
159 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 ...
1
vote
1answer
49 views

Inserting dat by using for? [duplicate]

I have data set in a form ROG1.dat, ROG2.dat,...,ROG100.dat, I want to import all of them in Mathematica, Can you tell me how? Best
0
votes
1answer
46 views

How to correct not precise values

I have the source file file = "test.txt" with these values: ...
5
votes
1answer
230 views

Opening Mathematica file in Google drive

I have a Mathematica file in my Google drive. There is no option to open the Mathematica file directly, without downloading it. Is it possible to directly open the file from Google drive?
0
votes
0answers
12 views

Importing clampex .abf data into mathematica

I`ve been looking for a way of directly importing data from axon binary files (.ABF) acquired with the clampex software (software webpage). I believe this will be very helpful for all the user that ...
0
votes
0answers
36 views

How should I import list of results with scientific numbers so they can be used for further calculation?

I have a file, listOfResults.txt, consisting of many rows of which the following is an example: ...
1
vote
1answer
44 views

Import image files in the order of the file name number [duplicate]

I would like to import images which are frames from a video, they are numbered, so importing them in the correct order should not be a problem... However, when I import them, by writing: ...
3
votes
2answers
41 views

How to convert a list of names and values into a series of expressions [duplicate]

I had an Excel spreadsheet with a list of symbols names in the first column and a list of values in the second column. I imported it. Working with the resulting expression, I now have (in Mathematica) ...
1
vote
1answer
93 views

How to parse complex response from SDMX-JSON endpoint in Mathematica

I am trying to use a datasource that has an SDMX-JSON endpoint. I am currently running my tests on Mathematica 10.3.1 running on 64-bit Linux. I started off by familiarising myself with the tools to ...
1
vote
3answers
33 views

Importing table with symbolic and numerical rows

Consider generated numerical data with added symbolical row: ...
-1
votes
1answer
72 views

Importing a file inside Zip with OpenRead

How do I import a text file that is compressed inside a .Zip file using OpenRead? I know how to do it using Import ...
4
votes
0answers
60 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 ...
1
vote
1answer
47 views

Memory consumption for importing numerical data from an ascii file

I am importing a file which contains data consinsting of 8918347 lines and 6 columns of the following type: ...
1
vote
2answers
107 views

Import data from Excel and plot in Mathematica

I'm trying to Plot data in Mathematica that I upload from Excel. The Excel file has 5 columns. The first column I would like to be the x-values, and the remaining ...
1
vote
1answer
59 views

Getting PDF from imported Histogram

So I'd like to create a probability density function from an existing histogram from a program that I use. My input data is of the form ...
10
votes
1answer
135 views

Import Converter as a Paclet

In short, I have a package that can load a proprietary device file-format. The underlying reading code is written in Java, packed into .jar, and in a Mathematica ...
3
votes
1answer
123 views

Getting data using webscraping (Obtaining links from search engine with redirect)

In the past I have used the function Import in relation with "Hyperlink" to collect hyperlinks and data from the internet. For ...
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
29 views

Just typing Import[] tries to list folders in a directory, and it is slow over sshfs

It appears that Mathematica tries to list the folder that you're typing into an Import[] statement. Since I'm working with folders mounted over sshfs and they ...
1
vote
3answers
118 views

How do I make 3D (densityPlot) and 4D (densityPlot3D) plots from data in excel file?

I have data from an experiment with about 500 rows and five columms. I have learnt from this forum how to import my data with the code. importeddata = Import["sample.xlsx"][[1]]; Grid[importeddata] ...
1
vote
2answers
68 views

How to increase the speed on opening and playing gif?

I have a gif Example.gif, and would like to play it in a presentation. I used the following code:- ...
1
vote
0answers
28 views

Accelerate import of table of numbers

I've been writing a ServiceConnection to the OEIS and one thing I need to do is import large sequences of numbers, like this one. My first though for this was to ...
0
votes
0answers
48 views

Procedure for importing .mat from MATLAB and plotting in Mathematica

Suppose I have a .mat file containing a single matrix. Now I wish to import said matrix to Mathematica and plot some content of the matrix. For example suppose I wish to plot the second row of the ....
1
vote
1answer
55 views

FinancialData plot that is based on imported CSV data

Is it possible to use the FinancialData such as the PSAR indicator on imported CSV file ?
8
votes
1answer
151 views

Difference between Import and Get of mx file

The documentation says Import["file.mx"] is equivalent to Get["file.mx"] . However, I have at least one instance where <...
0
votes
2answers
67 views

Plotting Imported Excel Data With Specific Format into Mathematica 3-Dimensionally

EXCEL SPREADSHEET I have an Excel spreadsheet (link to it and its image given) that contains data I want to graph three dimensionally. Purple is for the x-axis values (wavelength). Blue is for the ...
1
vote
1answer
73 views

How to plot image.mat in Wolfram

I have a picture that saved in ".mat" format. I am interested in plotting it with WL. But I get an empty image ...
2
votes
1answer
59 views

How to import and array of data?

I'm trying to import many files which have the same name "x.data", but they end with a extension "x_code1.data". I was trying to import all files with the routine: ...
1
vote
0answers
59 views

Importing FITS files with Mathematica 11.3, bug?

With Mathematica 11.2 I could import this FITS file without problems in about 20-30 seconds using: Import["filename.fits.gz", "TableData"] With Mathematica 11.3 ...
2
votes
0answers
49 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 ...
0
votes
0answers
42 views

How do I import RiemannSurfacePlot3D to Mathematica 11.3?

I am attempting to use Import["http://www.mathematicaguidebooks.org/V6/downloads/\ RiemannSurfacePlot3D.m"] But this returns the following shadow error and ...
5
votes
2answers
107 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
113 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?
0
votes
3answers
144 views

ListPlot using data from a .txt file [closed]

I have a .txt file. In this file, there are four columns where the data of the first and the last column are important for me. In fact, I want to plot the last ...
4
votes
0answers
46 views

What is a good source of public domain 3D images that can be imported into Mathematica?

I am interested in using some 3D images for a lesson I'm developing for kids, in which I want to show them various printouts of 2D cross-sections of the image and have them try to figure out what the ...
0
votes
0answers
21 views

Different behaviour of List when imported from MX and CSV

On a sort of related question here, I noticed something odd about the behaviour of List. When Import["myCombinAnalysis.MX"] ...
5
votes
1answer
72 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: ...
4
votes
1answer
93 views

Import specific columns from a large amount of CSV files

I'm looking to import the 4th column of data from a few hundred CSV files that I have stored in various folders. I have been able to import all CSV files from a given directory through use of: ...
1
vote
0answers
25 views

multiple import and plot

I used the following code to import all the file from one folder and perform operation on it. But I can't get my graphic...Should I need to use Table somewhere to plot them but I don't see where... <...
0
votes
1answer
88 views

How can I get rid of extraneous brackets when importing data from MATLAB? [closed]

How can I easily correct this data sequence from MATLAB to one readable in Wolfram Mathematica? The problem is the 2 outer brackets: ({{ ... }}) ...
2
votes
1answer
76 views

Import files from password-protected remote server

I would like to Import files which are stored at a password-protected remote server. Because the server is protected by a password ...
2
votes
2answers
64 views

Convert CSV data for use with CandleStickChart

can anyone show me an example of how to import a CSV file and produce and CandlestickcChart using the imported data. I have tried ...
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 ...
2
votes
1answer
44 views

Import data and rearranging

I need to Import datas, then I use Import["salida.dat","Table"] and the result is:...
4
votes
1answer
114 views

Import a very large file partially

I have a very large text file which file size is nearly 100GB and contents is like a CSV file as follows ...