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

Filter by
Sorted by
Tagged with
1
vote
1answer
75 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 ?
11
votes
1answer
364 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
95 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
79 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
173 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
81 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
65 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 ...
5
votes
2answers
130 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
146 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
421 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 ...
5
votes
1answer
85 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
413 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
44 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
116 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
110 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
80 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
51 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
49 views

Import data and rearranging

I need to Import datas, then I use Import["salida.dat","Table"] and the result is:...
4
votes
1answer
144 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 ...
0
votes
0answers
24 views

`Get` files depending on the string input [duplicate]

Let's suppose I have a code like this: ...
0
votes
0answers
38 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
143 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
189 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
181 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
62 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
241 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
268 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
119 views

Import and wildcard interaction

I recently came across this behaviour of Import: ...
0
votes
2answers
184 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
296 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
63 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
123 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
112 views

Export & Import Association with Lists and Rationals without ExpressionJSON

Consider following association: ...
0
votes
2answers
48 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
80 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
30 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
49 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
400 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
496 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
49 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
64 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
28 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
90 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
43 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
41 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
186 views

Is is a bug when importing MXNet model?

There is a trained net:model.zip Using Python to make prediction: ...
0
votes
1answer
54 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
28 views

Import File prevent splitting of sentences

I have a file that looks like this on Notepad When I import it, I get this: ...