All Questions

141 views

how recover lost data of coordinates from contourplot of mention data?

I have made Contour Plot for a lot of data, like this ...
35 views

Buttons to generate copyable output

I have a grid as per below, made out of a series of buttons. Upon mouse click, I would like the buttons to (a) change the colour of that square and (b) output the text value of that button ...
32 views

triangle ABC with an arbitrary point M inside it, while MB" , MC" , MA" are distances and AA, BB , CC are heights of the ABC triangle I need to prove the ...
41 views

Export all open notebooks and change font size

Is there a simple way to export all open notebooks to pdfs? Also, when I export notebooks the font looks too big / the margins are too big. Can I change these settings when exporting?
64 views

Export data of a 3D histogram

I want to export the data of a three dimensional histogram in the format # x y z with a blank line between different lines, so that one can plot the ...
63 views

Sum of first n items in a sequence [closed]

What's a way to sum over the first n items in a sequence, for example the sequence defined by $2^{k-1}\cdot k$ for $k\in\mathbb{Z},k>0$? I do these by hand all the time but am a bit tired of doing ...
39 views

Reduce - Most efficient expression - Using FullSimplify

I am trying to solve complicated inequalities using Reduce, in order to determine whether certain mixed equilibria in game theory are stable. My first question ...
45 views

problem in normalization

I'd like to find the normalized ground state wavefunction for the anharmonic oscillator (Duffing) whose potential for which there is no analytic solution; an oscillator with a quartic potential, in ...
54 views

How to solve initial value problem using Runge-Kutta method? [duplicate]

How to solve the following initial value problem using Runge-Kutta method u''[x] + (2/x) u'[x] + E^(u[x]) == 0, u[0] == 0, u'[0] == 0
41 views

InterpolatingFunction as polynomial

when I solve a fourth order differential equation using Runge - Kutta - Fehlberg Method (RKF45), the final solution takes the form InterpolatingFunction[{{0., 2.}},<>][x] but I need to find ...
57 views

How to introduce custom hot keys for the styles of cells?

In the JournalArticle StyleSheet there are useful hot keys Alt+6 for a DisplayFormulaNumbered and Alt+5 for the DisplayFormula. Such hot keys, however, are not present in the Default StyleSheet. Even ...
77 views

How to return matching sublists or empty list

How to return matching sublists or empty list m1 = {{1, 0.5}, {2, 0.4}, {3, 0.1}}; m2 = {{1, 0.5}, {0, 0.4}, {0, 0.1}}; Commonest[Join[m1, m2]] out: ...
71 views

Where can I find the Distributions Palette?

I was watching the "Statistics: Modeling with Statistical Distribution" Training Course http://www.wolfram.com/training/videos/DAT016/ and in one of the slides, the following image showed up. Does ...
64 views

How to extract the people and objects from an image separately? [migrated]

For example, I have an image There are 7 people in the image and one apple and a bird. How can I extract every person and every object from this image and put the 7 people and 2 objects into 9 ...
140 views

Filter design: working with a transfer function

I am new to Mathematica, whereas my fellow students are not. We are supposed to do the work with Mathematica, and every little thing halts me. I have a transfer function for a filter defined as such: ...
86 views

Interpolation of a table with 4 parameters

I have a huge data file which I need to do some analysis on it. The file is built in this way that for each 4 variables, there is a value of the function: ...
223 views

Finding fourier transform of data and hence frequencies

I looked at all the other questions related to mine before posting this, and they didn't solve my problem. I have a large data set which can be downloaded from here. I'm using the following code to ...
155 views

How to collect expressions from cells created by Print?

I have a notebook where evaluation of a certain cell produced hundreds of adjacent output cells using Print. I need to create a list containing all expressions from ...
119 views

Organise data in table

I have a large amount of data available (in excel), which is not very organised. I can do this by copy paste, but I am trying to do this using mathematica. Hopefully someone can help me. I imported ...
132 views

Check if integer has even number of digits

I want to check if a number has an even or odd number of digits. 10 would be even because it has 2 digits 300 would be odd ...
95 views

Defining a function with more than one formula

I want to define a function with more than one formula, but I don't know how. For example, I want to define a function f which ...
51 views

convert numbers to decimal places [closed]

I want to set up an equation where, when given x, the result will be the lowest number with x number of decimal places. So: ...
45 views

How to make this particular replacement involving exp

I apologize if similar questions have already been asked, but I have some difficulties with replacements in Mathematica and I would like to make a substitution like ...
51 views

Error when trying to run Mathematica 9 on Ubuntu 12.04 from the command line

When I type : mathematica or math on terminal, generates following error: ...
118 views

Orderless pattern matching of rule lists

I am looking for a compact way to specify a pattern to match a rule list with MatchQ that allows for enumerating the rules in the rule list in an arbitrary order. ...
39 views

What exactly is “ParameterErrors” of NonlinearModelFit?

I am trying to get what I call a "$\chi^2$ fit". This means taking a function $f(x,p)$ of the variable $x$ with a parameter $p$ and finding the value of $p$ that minimizes the "distance" from a data ...
35 views

Financial number format

How can I change this function: nFormat=NumberForm[#,{\[Infinity],2},NumberPoint->",",NumberSeparator->".",DigitBlock->3,ExponentStep->10]&; So ...
79 views

How to make the GroupOpeners visible in the SlideShow regime?

I am preparing a presentation on Mathematica and realized that though I made the GroupOpeners visible in the working regime (through the OptionInspector), they are invisible in the regime of the ...
52 views

Importing and running a notebook [duplicate]

I have a very long .nb file. I want to subdivide the different sections into separate notebooks, then call them in a common nb ...
84 views

...
63 views

How to solve this FindFit::nrlnum:

the following code show error message FindFit::nrlnum: "The function value {6.71759 -9.36268*10^-8\ I,6.51797 -8.42641*10^-8\ I,6.31789 -7.49014*10^-8\ I,6.1179 -6.55387*10^-8\ I,5.91794 ...
141 views

Reducing mesh details while exporting to vector format SVG

I am trying to export a simple cuboid into .SVG format. In the output file, the cuboid is finely meshed, which increases the file size. How to remove this detailed mesh? ...
54 views

Kernel behaviour in FindMinimum Optimization

I am optimizing very big problem as following: ...
78 views

Finding Minimum of a list after interpolation

I have a set of lists called Er[l], where l is from 1 to 13. I want to find the minimum point in the plot in these lists after interpolation by spline method. I need the values and the points on the ...
276 views

Can (compiled) matrix permanent evaluation be further sped-up?

Update  Multiple optimizations that were suggested by members "ssch" and Simon Woods have in aggregate yielded a ~5X code-speedup; and these optimizations now are incorporated in the example ...
58 views

solving nonlinear pde for response and its derivatives in space and time? [closed]

It is possible to solve mentioned nonlinear pde, for v(x,t) and its space and time derivatives in Mathematica? Boundary conditions are, v(0, t) = 0; v"(0, t) = 0 @ x= 0 v(l, t) = 0; v"(l, ...
193 views

How to change the color of a button while it is pressed

I want to change the color of a button while it is pressed, pause for a short time and then change the color back to the original color. I can't seem to figure out how to do this (tried various forms ...
65 views

Using Product for different variables

when using product in mathematica the initial and maximum value of the product will be the variable itself that will be maupulated. what I need is to make these initial and maximum of the product as ...
179 views

updating code from 5.0 to 9.0

I am updating a code from a 5.0 version to a 9.0 version. I am speaking about "Advanced visual quantum mechanics". There is a package with this code:  ...
160 views

Pulling constants out of integrations [duplicate]

The following is the code and output of a Mathematica command How do I get Mathematica to remove $g(y)$ outside the integral?
48 views

RowReduce : Record of all the row operations for RREF

I read "for what right-hand sides $b=(a,b,c)$ does $Ax=b$ have a solution", but that question pertains to solving for the unknown vector. I'd like a record of all of the row operations required to put ...
47 views

Hypergeom to Bessel

Is there any way to get Bessel function equivalent to a Hypergeom function. Would it be possible in general ? From maple integration (As discussed in Answer ID 37931), the result of a symbolic ...
65 views

Having Trouble Solving this System of ODEs

I am having trouble finding any solution to this ODE: ...
119 views

How to make a control array of buttons or togglers?

An array of buttons From time to time I wish I had a control array of the sort native to Visual Basic. A control array of buttons would be a table of buttons in which each button "knows" its ...
95 views

Why does using ReplaceAll twice produce a different result?

Why does this: Solve[a x^4 + b x^3 + c x^2 + d x + e == 0, x] /. {2 c^3 - 9 b c d + 27 a d^2 + 27 b^2 e - 72 a c e -> F} produce a different result from ...
69 views

Integrate message: can't prove Integration limits are real

I'm working on solving differential equations through Fourier series, I made a function to help me calculate the coefficients that looks like this: ...
46 views

How to invoke Splice via shell command without opening Mathematica window?

I just want to invoke Splice["C:\\Users\\MySecretName\\Documents\\StackExchange\\Mathematica-Invoke\\example.mtex"]; via command prompt or shell command or via ...
171 views

How do I evaluate Mathematica expressions and insert them in a LaTeX file?

I want to make use of Mathematica as the backend to solve some computations used in my LaTeX input file. As I have no knowledge to make it in Mathematica, I used Maxima as explained in the following ...
I have a file I import and read into a table of $2 \times n$. I can plot this data using the following code: ...