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 on systematic data handling and analysis, including data correction, manipulation, or selection of user-data or built-in data available with Mathematica.

2
votes
1answer
57 views

How to calculate asymptotic convergence of 2D data

I have the following data: ...
2
votes
1answer
67 views

Fitting an equation to data set, am I doing this right?

I have a large data set of different values of time. I want to make 1) a histogram 2) fit an exponential function of form A+B*exp(-t/b) from the data To my understanding, this is how I'd do it <...
1
vote
1answer
55 views

Problem importing from HDF5

I'm trying to import an item from a valid HDF5 file, but I get this error: I can read the metadata, but cannot import the actual tensor dataset: And yet it's not an issue with the file's data - as ...
12
votes
1answer
228 views

Data re-structuring by Thread

Thread can do this Thread[{a, {b, c, d}}] {{a, b}, {a, c}, {a, d}} But when above ...
5
votes
2answers
120 views

Selecting points on either side of a curve

I have the following array of data. Suppose I want only to keep data within the two lines. I can achieve my result using the following code: ...
4
votes
1answer
133 views

Interpolation of data

Consider a set of data points ...
1
vote
3answers
67 views

How to convert DateList format to standard SQL format?

I have a date in standard SQL format YYYY-MM-DD HH:MM:SS.xx, where the xx are hundredths of seconds: x = 2016-05-30 11:58:46.84 I have a file with 200,000+ ...
0
votes
0answers
32 views

Problem get the difference between two plots using their data

Everyone :) In the next algoritm I made two set data (NFW1tbcx.dat and SIS1tbcx.dat) with which I make two different plots and I need to make a third plot that would be the difference of the previous ...
1
vote
2answers
58 views

Making a histogram with bin spacing and exporting the data

I want to create a histogram which has spacing between its bins (as shown below): to create this I used the following method: ...
1
vote
1answer
63 views

Build a histogram from stochastic data

I have the following code yielding my stochastic "paths": ...
4
votes
2answers
77 views

Raise a table of pre-existing data to the power of of one of the variables

NOTE: I have edited this question to give a table whose first elements don't count up from 0 to 5. I'm using a sample table ...
2
votes
1answer
64 views

Reorder sets of 3D points to retrieve line segments coordinates

I have the following two sets of 3D points representing lines coordinates and points. : ...
4
votes
1answer
48 views

How to submit new state-by-state information to the Data Repository

I'm interested in algorithms for apportioning seats of Congress to states after every decennial Census, for which I'm using Mathematica to test different functions. To this end, I wrote a Notebook ...
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
1
vote
0answers
50 views

List of Financial Index in Mathematica

I have to work with different Financial Futures Index in Mathematica using the function "InteractiveTradingChart". But, I can't able to find a complete list of all the available Financial Futures ...
0
votes
3answers
102 views

Summing coefficients of multinomial

I have data of following form. data = {{1, multi1(z1, z2,..)},{2, multi2(z1, z2,..)},...} I want to add up all the coefficients of corresponding multinomial (and also want to perform different ...
0
votes
0answers
10 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 ...
2
votes
3answers
104 views

Fitting two equations to diferent parts of the same dataset

I have a system that transit between two different states. Each state output varies linearly with time, given by $m t+c$, where both lines intersect the $x$ axis in the same point. The output of this ...
0
votes
0answers
33 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
34 views

Deleting list points that are in a certain 3D region

Hello I have a large number of data points, from which I want to remove these(between the red lines) that seem to fall onto one plane, what would be the best and easiest approach. Also added the ...
2
votes
1answer
58 views

How to speed up `ReplaceRepeated` `//.`?

I have to replace all the elements smaller than 0 in a large matrix to 0.But i found the speed is really slow when the matrix is big. Here is my code. ...
2
votes
1answer
31 views

Data Type that can contain multiple data types

In MATLAB one can use cell arrays and structures to "hold" data of different types. For example, one can define a cell array in which the first cell contains an array, the second a differently sized ...
3
votes
0answers
102 views

Why is there a lot of noise in the Wolfram Blockchain?

I tried to look into the transaction history of the Wolfram Blockchain. I tried this:- ...
3
votes
0answers
36 views

How to find the block number of a transaction in a Wolfram Blockchain?

For example, in block 1004 of the Wolfram Blockchain, I can get the 4th transaction's ID by using the following code:- ...
2
votes
1answer
59 views

Select the right XMLelement

I scrape data from a public website about houses for rent. All pages have the same structure. But the pages can differ in the amount of information. Below I give two examples: page/house 1: ...
1
vote
2answers
59 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 ...
0
votes
1answer
54 views

Given a data set, how to do the following

Please help in executing the following problem in Mathematica: I have the following set:$A=\{1, 2,3,4,5,6,7,8,9,10\}$ (my actual data has more than 10 points). I need to do the following three steps: ...
0
votes
0answers
11 views

How to locate the data behind WordFrequencyData?

I would like to do some historical textual analysis. For example, the following codes with WordFrequencyData and TimeSeries ...
2
votes
1answer
25 views

Attempting to fill a table with the number of elements in each bin and make a table with the elements in the bins?

I am having some difficulty trying to fill a table with the number of elements in each bin while also making a table that holds the elements in each bin. Okay, let me go over my thoughts: So I have ...
0
votes
1answer
29 views

Switching rows and columns for an import file

How can I generate a code for switching rows and columns of a random .txt file? The data inside that file may contain strings, which must be switched too. I import the data in a table format, but I ...
0
votes
1answer
51 views

Plotting line fit

...
1
vote
1answer
63 views

Interpolating and plotting from a list

I have a dataset in this form (but much bigger of course): ...
0
votes
2answers
86 views

Exporting result of calculation to file at each step of iterative routine

I am performing a calculation that involves a triple "For" command. My goal is to export the table of all values of some function (which depends on the three indices) to a data file for statistical ...
1
vote
1answer
65 views

Drawing a surface using an Excel file

I’m totally new to Mathlab. I have the following ‘grid data’ to be read from ‘Office Excel’ that I need them to be drawn as a surface in the Mathematica or Mathlab. I’ve done this with the ‘Surface’ ...
4
votes
3answers
198 views

Multi-peak fitting for peak position

I have a {x,f} data-set featuring multiple peaks. The peaks evolve with a second variable y. I would like to fit the multiple ...
1
vote
2answers
94 views

Binning with negative weights

I have a long list of events consisting of pairs {{e_1,w_1},{e_2,w_2}, ....{e_n,w_n}} I want to bin the energies e_i and then sum the 'weights' w_i of all ...
2
votes
1answer
67 views

WeightedData Problem

I have two lists, the first one containing energies the second corresponding weights, which I want to combine into a weighted data set by using WeightedData. ...
2
votes
1answer
34 views

Where is the folder storing the ResourceData files?

I wonder where would the file be stored in Windows when I use the function ResourceData. Since sometimes the data is quite large, I would like to have a look at the ...
2
votes
1answer
53 views

Store large symbolic data in a binary format efficiently?

As far as I understand, the Binary Data feature of Mathematica can efficiently store raw numbers or elements of a given type to binary files. Is there a way to store a large symbolic expression (read -...
4
votes
2answers
207 views

How to use Nearest as a lookup function?

I have data1 and a target point targetPts, and want to find the closest point from the data. As you can see from below, the 29th ...
1
vote
1answer
73 views

WhenEvent, Storing Sow data, Loops

My problem is essentially to do with manipulating and storing Sow data in a nested loop structure. I have a set of differential equations describing time-evolution of a bunch of variables. ...
1
vote
0answers
40 views

Inserting a table data inside the function

Consider a table with n columns and function f[x] depending on n coordinates, $x = x_{1},...,x_{n}$. I want to interpret the table as a set of points in n-dimensional space and calculate the function ...
3
votes
3answers
109 views

Reading list data like a loop

Let's assume, I have a data set like: data1 = {{{a1, b1, c1}, {d1, e1, f1}}, {{a2, b2, c2}, {d2, e2, f2}}, ..., {{a20, b20, c20}, {d20, e20, f20}}}. ...
0
votes
2answers
65 views

Verify polynomial equation for set of 3D data [closed]

Goodmorning, I mean to this link: Find polynomial equation for set of 3D data I tried to verify the result, namely if the interpolation is correct, but I found something that I don't understand. I ...
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 ...
3
votes
1answer
65 views

Function with domain from data table

I have a Table with elements {{i1, j1, k1},{i2, j2, k2},...} I wanted to store the values of ...
0
votes
0answers
62 views

3D plot from lists

I'm trying to generate a 3D plot of some functions a,b,c, under certain inequality constraints. I have earlier defined the functions a[x,y,z],b[x,y,z],c[x,y,z] ...
0
votes
0answers
42 views

visualization of timedependent flux data

I am trying to visualize some electronic flux data for a quantum mechanical system. I have a file containing electronic flux values and coordinates for different timesteps in a quantum mechanical ...
0
votes
1answer
39 views

Fit to Binomial Function

I have the following data, and need to fit a binomial distribution to this data. I have already done so for a gaussian fit (this is the example code I have below), but I am having trouble using a ...
1
vote
0answers
66 views

Fitting two overlapping sinusoids in a single set of data

I have a set of data data = Import["https://pastebin.com/raw/aqUwN2XR", "List"]; that gives me a graph that looks as though it has two oscillating sinusoidal ...