15
votes
1answer
536 views

Export dataset to JSON

I'm experiencing a weird issue. Consider a dataset defined like this: dataset = Dataset[{<|"a" -> 1, "b" -> 2|>, <|"a" -> 3, "b" -> 4|>}]; ...
9
votes
1answer
211 views

Median of Dataset in Mathematica 10

I'm having trouble calculating the median of a Dataset[] in Mathematica 10. The situation is as follows. Consider a dataset that was defined as follows: ...
3
votes
1answer
173 views

Extract data from WeatherData as a list of associations

Given weather data for 2013 and 2014 as follows: ...
0
votes
2answers
79 views

Solve simple differential equation - Error?

I get the error "The function Te appears with no arguments." when running this code. I'm not sure why. Is it because of the $Abs[\Gamma]$ ? ...
0
votes
1answer
88 views

naturalcolor stylesheet not working between linux and windows

I have encountered a weird problem with Mathematica 9. I have it installed on my laptop running Windows 7 and on my work computer now running Debian Wheezy. I am also using dropbox to access my work ...
0
votes
0answers
29 views

Use FindRoot solution as number in function [duplicate]

I would like to save a number that I gain with FindRoot so that I can use it in another function. I tried: ...
0
votes
1answer
203 views

How to plot data points in the form X, Y, E(X, Y) where X and Y coordinates are not ordered?

I have got a file with field values (RF simulation of a resonator) which consists of 3 columns: X and Y cartesian coordinates ...
3
votes
1answer
130 views

Can a Mathematica Application be inside another Application?

The file structure of a simple MMA Application can have the form: MyApplication MyApplication.m SomeAuxiliarPack.m Kernel init.m Where ...
6
votes
2answers
2k views

how to solve ODE with boundary at infinity

y''[x]-x y[x]==0 y[0]==AiryAi[0], y[infinity]==0 the analytic solution to this ODE is the Airy function y[x]=AiryAi[x] if I ...
1
vote
2answers
295 views

Error with “Newton's method” in Wellin's Mathematica book

In Wellin's Programming with Mathematica book, here's one of his implementations of the Newton method, where the iteration runs until the error tolerance is reached. ...
8
votes
2answers
235 views

How to unprotect a variable in a package

In Mathematica 9, I had the function(s). I apologize for the weak formatting. ...
5
votes
1answer
233 views

How to force mathematica v.9 and 10 notebooks to open in their respective front end

I have version 9 and 10 installed on Windows 7. if I double click to open version 9 notebook, then it opens in version 10, how I can force a notebook to open in its respective front end. I have ...
12
votes
3answers
355 views

Manipulate crashes after running 4 minutes

The following code generates the familiar 3D-plot: ...
10
votes
1answer
172 views

Can TemporalData be used as a container for TimeSeries and TimeSeries Metadata

When I create two TimeSeries with some MetaInformation I can combine them into one ...
1
vote
1answer
439 views

Remove curly brackets _completely_ to map a function to the elements of a list [duplicate]

Most list manipulations can be done with Flatten, Partition and Take. I didn't managed to ...
4
votes
2answers
196 views

Time-efficient creation of matrix

I have expressions like xx1=FF[1, 1] GG[1, 1] + FF[1, 1] GG[2, 2] + FF[2, 2] GG[2, 2] xx2=2*FF[1, 2] GG[1, 1] + FF[1, 1] GG[1, 2] + FF[2, 2] GG[2, 2] and I want ...
3
votes
2answers
119 views

Time-efficient manipulation (zeroing) of expression

I have huge matrices in the form of ...
2
votes
4answers
229 views

Import xls data with dates

I have an excel table that have 2 columns, the first one are dates, and the second one are values. I want to plot the value vs the date. I need to: first clean all the non numbers strings like ...
8
votes
1answer
496 views

How to split a Dataset into training and testing for machine learning?

Suppose I have iris data In the Dataset Format. How to split the iris data Into training and testing for Machine learning? For example,Transform the data for Classify.
6
votes
3answers
375 views

Rotate lines around their midpoint

I am trying to rotate a series of lines by the same angle around their centre point. Say each line is defined by a co-ordinate at each end, simplified example below of a typical dataset. ...
2
votes
1answer
190 views

Font changes once Exported for Text inside a Grid

I am trying to work with Mathematica 10's new font and have found a simple way to revert the font family to Times New Roman for all my figure. I enter the following command in the ...
4
votes
2answers
116 views

Correlation test issues

No error in 10.0.2 When using Correlation[] function I sometimes get the strange warning: ...
3
votes
3answers
335 views

Plot graphs with direction and numbered in Mathematica

I would like to write a code in Mathematica such that it shows the direction with numbers on points. I wrote this code which does not do this. I want just to complete this code with two options I ...
5
votes
0answers
107 views

Convoluting inverse square root with Gaussian

I would like to convolute the inverse square root on the interval [0,inf] with a Gaussian function, like so: ...
7
votes
1answer
247 views

Measuring time complexity of a method

I use ...
0
votes
1answer
145 views

Elegant way to do series expansion around x+$\epsilon$

Suppose I have a function $p(x+\epsilon,y-\epsilon,t)$, and I want to expand it around $(x,y)$ like $$ p(x+\epsilon,y-\epsilon,t)=p(x,y,t)+\dfrac{\partial p}{\partial x}\epsilon+\dfrac{\partial ...
-1
votes
1answer
252 views

Find minimum function value in data and give coordinates of minimum

I create with Table an array containing the function value of some function and the n1and ...
1
vote
1answer
89 views

How can I write a function which takes another function of a variable and the variable itself as arguments and gives a list of critical points?

This is an exercise from Power Programming with Mathematica by Wagner. I need a function which takes a function and a variable as arguments, like this: critpts[f_,x_]:= and then on the rhs I've got ...
0
votes
2answers
427 views

Plotting a solution of the Allee Effect

I am doing a project on the Allee Effect. I am able to successfully create a stability analysis. That is, I can find the relevant equilibrium points ($y_e = 0,\ y_e = \alpha$ and $y_e=k$) and draw ...
4
votes
1answer
223 views

How to translate and scale an image via ImageTransformation

Is there a way to translate and scale a 2D image simply by using ImageTransformation[] and TransformationFunction[]? I know how ...
1
vote
1answer
85 views

Using FindGraphCommunities, write community membership for each vertex to CSV

I have a network that I've loaded into Mathematica, and I've used FindGraphCommunitites[network,Method->"Hierarchical"] to identify the communities in the ...
5
votes
4answers
215 views

Defining a function with parameters as variables

I have an expression V = (a[1] + a[2])b[1]. How would I define a function of a[1], a[2] and ...
4
votes
1answer
1k views

Reading csv/xlsx data into Mathematica with column headings as list names

It's old question. However, I could not find satisfactory answer. Decided to post this question. I have a .csv file with column heading. How can I import this ...
1
vote
0answers
133 views

Best way to determine polynomial coefficients in series expansion

I would like to solve the equation $$h'(\boldsymbol{x}_1)\left[B_1\boldsymbol{x}_1+g_1(\boldsymbol{x_1},h(\boldsymbol{x}_1))\right]=B_2h(\boldsymbol{x}_1)+g_2(\boldsymbol{x}_1,h(\boldsymbol{x}_1))$$ ...
27
votes
0answers
550 views

Version 10 cannot print properly?

Bug introduced in 10.0 and persisting through 10.2 or later I have two problems with printing in version 10. First, I can't print correctly with a setting of printing scale For example, I have ...
8
votes
2answers
208 views

Why is mathematica giving wrong and incomparable results for the integral?

1) Integration of Gaussian Distribution with $(x,y,z)$ ranging from $-\infty$ to $\infty$ gives 1 as expected using this command in mathematica. (Total Probability = 1) $\sigma = 200000$ and ...
2
votes
0answers
85 views

silent soundnote and superimposing sound objects

In Mathematica 9, Soundnote[None] has zero duration if it is the last note in a Sound expression. For instance, the sound object ...
2
votes
3answers
201 views

Interacting with 3D Graphics, for export

Are there any export formats which preserve the ability to interact with 3D Graphics? (In particular, the ability to rotate.) EDIT: I've found this question: How to make a 3D plot auto-rotate? ...
1
vote
0answers
81 views

Fourier transform an expression to obtain a distribution?

I have this expression for the correlation function for a rigid rotating molecule: $G(\tau) = 4 \pi \int \omega ^2 P_2[\cos (\omega \tau)] P(\omega) \, \mathrm{d}\omega \quad [1]$ where $P_2$ is a ...
1
vote
0answers
48 views

Placing package in existing Utilities` context has odd paraellelization effect

I noticed this in V.10 but possibly it was in effect in V.9. I have a package which in simplified form looks like:- ...
2
votes
1answer
306 views

kernel Local crashes during the course of a For loop

I want to find the minimum of the function r[x,p] subject to the constraint w[x,p,t]==0 (t ...
5
votes
1answer
170 views

Restrict Mathematica command to what is inside parentheses

I have a bunch of expressions like this one: $\frac{e^{-\frac{7 J}{2 k T}} \left(2 e^{-\frac{2 g H \mu _B}{k T}}+e^{-\frac{g H \mu _B}{k T}}-e^{\frac{g H \mu _B}{k T}}-2 e^{\frac{2 g H \mu _B}{k ...
0
votes
1answer
150 views

DSolve problem with system of linear ODEs

I encounter a rather strange problem in Mathematica when trying to solve the following system of linear differential equations: ...
0
votes
1answer
345 views

A symbol occurs in more than one context:one of the definitions is shadowed

I started Mathematica 10 and run as the tutorial says: trainingset = {1 -> "A", 2 -> "A", 3.5 -> "B", 4 -> "B"}; c = Classify[trainingset] but the ...
0
votes
0answers
57 views

Question about the matrix operation [duplicate]

I was wondering if there is an automatic way to do this kind of matrix operation. For example, for a given matrix ...
1
vote
0answers
226 views

Problem with NDSolve in Mathematica 9 / 10

I'm having trouble by solving the following differential equation in Mathematica 9 and 10, where the code works fine in version 7: ...
1
vote
0answers
72 views

double-backslash-file path problem@version 10.0 [duplicate]

I found this happen @ Mathematica 10 pre test version and formal English version. Copy a file from windows, then paste into FrontEnd cell, you'll get a path, such like ...
0
votes
2answers
131 views

how do I plot this surfaces in 2-D?

Let $x_1$ and $x_2$ be two real numbers and define the column vector $\mathbf{x}=[x_1,x_2]$. Let $\mathbf{A}_1$ and $\mathbf{A}_2$ be two $2\times 2$ real symmetric matrices. Then I need to plot the ...
14
votes
4answers
1k views

How to change element color in Periodic Table?

The command ColorData["Atoms", "Panel"] generates a periodic table. As I don't want to reinvent the wheel, I asked myself how to change the color of each cell ...
3
votes
2answers
280 views

Charts performance

Evaluating the following lines in my computer takes near six seconds in Mathematica 10 and near 5 in Mathematica 9. I consider this very slow as only quantiles are being calculated from data to ...

15 30 50 per page