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

0
votes
0answers
30 views

Import webpage via proxy server

I would like to import a webpage into Mathematica which is installed in a PC in the Intranet. However, the webpage is blocked by the Intranet as it contains some forbidden words. Is there any way to ...
1
vote
1answer
69 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, ...
5
votes
3answers
144 views

Convert Matrix into a long form Dataset

I would like to convert a matrix into a dataset. The structure of the matrix is: ...
7
votes
1answer
168 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 ...
1
vote
1answer
57 views

Import two Gif files together and play them with just one button

I have two gif files and I want to import and play them at the same time with just one play button. The target is to compare them easily. Is there any way?
6
votes
1answer
181 views

Iconize a compressed image

I want to embed a compressed image in a notebook so that only an icon is visible (and not the whole image). The following procedure seems to work : ...
3
votes
1answer
183 views

Error importing JSON in 11.3 (worked in 11.2)

EDIT : Originally posted as an XML issue, file format was found to be actually JSON, yet the problem is essentially the same: Import worked in 11.2 but not in 11.3. As per Hans' comments, replicated ...
3
votes
1answer
82 views

Import and wildcard interaction

I recently came across this behaviour of Import: ...
0
votes
2answers
134 views

Prepare a dataset in Excel then import to Mathematica

I need to prepare a dataset, which will be much easier using e.g. Excel. Then I want to import and use it in Mathematica. One row in the dataset would look like this in Mathematica: ...
0
votes
0answers
101 views

How to run a .nb file in another notebook file changing a variable in a specific range

Let's say I have a .nb file (called "File1.nb" ) in which some calculations are performed and the results can be exported. In that file all the variables are defined with the exception of the variable ...
1
vote
2answers
54 views

Avoiding quotations after import “List” or “Data”

I observed that when exporting a List, no matter if I put "List" or "cvs" the result is always the same: after importing, the data appears with quotations: ...
6
votes
2answers
93 views

Importing a string such as “3d456” from a CSV file causes trouble

I have a CSV file I'm importing with Import and it consistently crashes Mathematica. It turns out the culprit is one particular value of an ID field that was ...
0
votes
0answers
48 views
0
votes
2answers
41 views

Looking for specific data in .txt file

I've the following code: Import["test.txt"] And it gives me: 1,10 2,20 3,30 4,40 5,50 6,60 7,70 8,80 9,90 10,100 11,110 12,120 13,130 14,140 15,...
1
vote
1answer
72 views

Why is ListLinePlot outputting weird graph

s = Import["Directory/FileName.xlsx"] ListLinePlot[s[[1]], AxesLabel -> {"Time", "Voltage"}] The graph is some sine wave but it outputs a huge number of lines ...
0
votes
1answer
29 views

Searching in a .txt file for a specific time

I've the following code: Import["hoi1.txt"] And it gives me: "(time,voltage,current,power) (1,10,5,10*5) (2,20,6,20*6) (3,30,7,30*7) (4,40,8,40*8) (...
1
vote
0answers
33 views

“Unsupported Shading type 7” error when importing back pdf for DensityPlot

This post is somewhat related to this one. We generate a density plot and stored it in plot variable. ...
11
votes
1answer
249 views

How to import Neural Networks from ONNX?

ONNX is a open format to represent deep learning models. So I want to import neural networks from other frameworks via ONNX. And the Mathematica 11.3 supports ...
4
votes
1answer
240 views

How to read this dataset with .dat and .r64 files?

I stumbled upon the European Data Incubator project, and wanted to play around with some of their data. I'm trying to open this dataset, which contains a bunch of ...
1
vote
1answer
46 views

Manipulating definitions while reading them with Get

In order to read in a definition with certain parameters replaced by appropriate values I can use for example Block[{a=1.1,b=2.2}, Get["file"]] where ...
0
votes
2answers
48 views

Labeling a list plot came from excel data set

I have made a list plot for an excel data set and I got the graph. However, I need to label each graph by its name that is already in the first cell of each column. I have 647 rows and 21 columns, but ...
0
votes
0answers
25 views

Restructure list during Import

I am continuously importing a text file which is written by another program and read in Mathematica. The text file gets updated in chunks, meaning that the text file is augmented by a certain number ...
0
votes
1answer
52 views

How to export and import a list of equations?

The problem is the following: I want to export a list of equations I have set up with Mathematica such that I am able to import it back to Mathematica and continue to work with it, i.e. as if I had ...
0
votes
0answers
24 views

Cannot import ExampleData/dialing.m4a in mma version 11.2.0.0

I cannot import MPEG-4 audio, whether it be the example file provided, or any other M4A file I have. The documentation clearly states that this should work, but here's what I get when I try it. <...
0
votes
1answer
37 views

Creating a graph that compares the age and survival status [closed]

This is the data I need help putting this data in a form that compares the age of the passengers and if they survived or not.
0
votes
0answers
30 views

Shorthand of Get[] [duplicate]

I thought that << expr was just a shorthand form of Get[expr]. I have now found that it clearly isn't. Namely it holds <...
3
votes
0answers
111 views

Is is a bug when importing MXNet model?

There is a trained net:model.zip Using Python to make prediction: ...
0
votes
1answer
47 views

Finding integers that do not appear on list [closed]

Let's say I imported a large list of numbers into Mathematica, and found the min value and max value. In that range [min,max], how do I find all integers that do not appear in this list? ...
2
votes
1answer
24 views

Import File prevent splitting of sentences

I have a file that looks like this on Notepad When I import it, I get this: ...
0
votes
1answer
60 views

Importing Data as an arbitrary matrix

I have a .txt file which have following form ...
2
votes
1answer
62 views

Nested BlockchainBlockData fail

New 11.3 functions to query blockchains. In trying to build a block link by iterative lookup, this function works for several iterations then fails: ...
0
votes
1answer
81 views

Importing and evaluating notebook from plain text

I have a computer-generated plain text file with some Wolfram Language definitions separated by newline characters - imagine it is the code you would type to a single cell: ...
0
votes
1answer
66 views

Importing multiple matrices or multidimensional arrays from a text file

I have a code written in Fortran which outputs a large block-diagonal matrix, which is then written into a file in blocks. I want to know how best to import these matrices into Mathematica (I don't ...
0
votes
0answers
50 views

Line Integral Convolution

I'm beginner and try to plot a vector field from files using LIC. It's possible something like: ...
0
votes
0answers
70 views

Import Stackoverflow data and convert it into dataset

I have an xml file with the tag data from Stackexchange: https://archive.org/download/stackexchange/stackoverflow.com-Tags.7z After I unzip it I would like to import it to Mathematica to some ...
3
votes
2answers
97 views

Importing from an API that has non UTF-8 strings

I am new to both Mathematica and API's. I am trying to access a dictionary of player-ids to names from the website datdota.com, but some of them have chinese characters. relevant code: ...
0
votes
0answers
174 views

specifying range of rows and columns of importing data

I have a text file that has below general form: ...
2
votes
0answers
46 views
1
vote
2answers
156 views

How can I detect and delete any row with a NULL value when importing from Excel?

I'm attempting to do a code for Wolfram Mathematica I am uploading an Excel file that has a huge number of characters and multiple sheets to enter. The issue is the import is set up as a table/...
0
votes
1answer
56 views

Import floating numbers from Google spreadsheets in CSV

For some reason when importing some floating numbers, Mathematica does not interpret them correctly. For example this spreadsheet: https://docs.google.com/spreadsheets/d/...
8
votes
1answer
701 views

Has someone successfully imported DICOM images from Siemens recently?

When I try to import DICOM files from Siemens MR, I can successfully import the MetaInformation, but importing the image itself fails. I have posted a small example dicom file: DICOM example In ...
2
votes
0answers
170 views

How to import a Maple worksheet into Mathematica?

I have Maple worksheet files (*.mw) from Maple 10-12 and I would like to import them in Mathematica 11. I have no access to Maple anymore. The worksheet files are XML based but not easily readable. ...
2
votes
0answers
41 views

Import/AbsoluteFileName does not find file returned by FileNames on network folder

I'm having some issue with Import and AbsoluteFileName used together with FileNames. Take ...
1
vote
2answers
63 views

Convert data types from string to list (Coastal Buoy data) for DateListPlot

I downloaded Coastal buoy data from the CDIP webpages and saved it as a text file. The trouble is that the data has spaces between the YYY MM DD hh mm. With ...
2
votes
0answers
17 views

Different behaviors with URLDownload and Import?

I don't understand why URLDownload misses the MIME type here: ...
1
vote
1answer
89 views

Importing Equations from MathJax

I have to use some complicated mathematical equations from a previous publication in my Mathematica notebook. These equations are available on science direct webpage in MathJax format, but I am not ...
0
votes
0answers
32 views

assigning numerical values to variable

I have a csv data file, has two columns of data. First column denotes time (t) and the corresponding value in the second column is flow rate (f). I would like to assign these values to an array f[t], ...
6
votes
1answer
211 views

What is wrong with importing Real32 or Real64?

Those who visit the chat might have seen the question of varkor. I'm posting it here in the hope that I have missed something. Assume you have a real number ...
1
vote
1answer
51 views

separating a `ReadList` of a CSV file into columns using `Case`

I have a really large file and would like to determine the pattern required for separating the columns by the different headers. I attempted to use Cases but it's ...
1
vote
1answer
73 views

Import and export datetime object

I have a list of datetime objects and numbers, say When I export to a txt file, it gives {DateObject[{2017, 1, 1, 0, 0}, "Minute", "Gregorian", 0., {"ISODateTime"}], 0} {DateObject[{2017, 1, ...