# All Questions

391 views

### Matrices and polynomials: MMA 8 vs. 9?

I want a function to take a polynomial from a list, plug a certain matrix T into that polynomial, and return the answer as another matrix. My program uses the applyPoly function suggested by a user in ...
145 views

### Exporting a plot without drawing it

I'm trying to create a rather big 3D image and export it. Currently, I create the image then display using Show, then use ...
1k views

### Reinstalling Mathematica home edition with new linux distro

I bought Mathematica home edition and installed it under Ubuntu. During an Ubuntu upgrade the power went out and wrecked the process. I installed Linux Mate Debian Edition and tried to reinstall ...
187 views

### Differential operator involving permutations

I would like to construct an operator in Mathematica of the following form, $$D_i=\partial_i +\sum_{i \neq j}^n\frac{1}{x_i-x_j}p_{ij}, \quad i=1,...,n$$ where $p_{ij}$ is a (symmetric) permutation ...
212 views

### How can I make ArrayPlot use one pixel per plot point? [duplicate]

If I ArrayPlot an {1200,1600} matrix, the result is a plot with ImageDimensions of ...
360 views

### Adjusting the pixel values underlying a morphological component when computing an “IntensityCentroid”

When calculating an "IntensityCentroid" with ComponentMeasurements, i.e. for an image $I$ and set of components $C$, ...
51 views

### Degeneracy problem at the start of a series expansion

I am facing the following problem : I have an equation which could write $$F(x_1(Y))-F(x_2(Y)) = 0$$ $x_1$ and $x_2$ are the largest and smallest roots of a cubic equation; their definition ...
404 views

### Importing Excel Spreadsheet containing Array Formulas

Has anyone had any success with importing an Excel Spreadsheet holding an array formula into Mathematica? The Syntax I'm using is ...
77 views

### Why selecting text in my notebook become abnormal?

Selecting text in one of my Notebooks becomes abnormal. Here is the unselected text: and here is the partly selected text: When the text being selected, it should be like this: What is wrong ...
618 views

Robert Raguet-Schofield in the Mathematica Blog introduced a way to import tweets from Twitter into Mathematica. I attempted to use this method. I started with this line of code: ...
81 views

### Can I make V9 prompt witb “In[1]:=” before I enter an expression?

Using an older version of Mathematica, I was used to the system automatically beginning each notebook line with In[1]:=. All I did was enter the expression and ...
211 views

### Multiple level lists

Let there be a list, Sample={{{1, 2, 3}, {a, b, c}}, {{2, 3, 4}, {d, f, g}}} I want to go to individual sublists and do some operation on it.I tried a few things ...
90 views

...
261 views

### Autonomous equations' critical points and eigenvalues

I have three-dimensional autonomous equations and want to find their critical points and corresponding eigenvalues. They have 6 critical points each. x, ...
238 views

### 3D arrow tail properties

I would like to use VectorPlot3D to plot a vector field with 3D arrows: ...
137 views

### How can I improve my Zooming code?

I recently started to work with the EventHandler function to make it possible to Zoom, Pan, etc, with only the use of a mouse. I have found a way to zoom that is ...
195 views

Data ...
251 views

### Converting inequalities to intervals

I have an inequality, ie: 1.57116 < g < 14.1405 There will be a large set of similar inequalities, and I want to find the intersection of them all. I figured it would be easier to convert the ...
111 views

### How can I avoid this ReplaceAll trap? [duplicate]

I am having some difficulties with the ReplaceAll function. When I write: {1, 2, 3, 4, 5} /. x_?OddQ -> x^2 I expect: ...
508 views

### How can I find all values of $m$ such that my cubic equation has three different positive solutions?

I want to find all the values of $m$ such that the equation $$-m^3 + 2 m^2 x + (-2 m - 1) x^2 + m + x^3=0$$ has three different positive solutions. I tried ...
699 views

### Why there is no name for #1@#2&?

Why does the pure function #1@#2& have no name? Is it due to the way Mathematica works, or is it "just because"? I'm asking because I find inelegant to write ...
203 views

### Speed up Eliminate

I have a set of trig equations, c1,c2,c3 are constants, I excepted the result is c1 c2 c3 r^2 + (c1^2 + c2^2 + c3^2 - 1) r + c1 c2 c3 == 0 but following code ...
165 views

### How can I access Mathematica kernel for WebMathematica in Linux(Ubuntu 12.04)

I have been working in webMathematica with Application server(Geronimo 3.0.1) in windows, It was working fine. Recently I have changed to Linux(ubuntu 12.04). I ...
175 views

### How can I solve my non-linear ODE?

DSolve[{-x^2 + y[x]^2 - 2 x*y[x]*y'[x] + 2*x^2 *y'[x]^2 == a^2}, y[x], x] DSolve is returning the input statement unevaluated. ...
278 views

### Manipulate Plot and control variables using multiple controls

Here's a simple Manipulate example: ...
104 views

### Frontend cursor movement speed depends on the position in large notebook file

I run Mathematica v9 on my Atom laptop (don't ask) and I got used to the fact that everything is slower. Except for one annoying thing: cursor movement (in text) is slower than the keyboard key repeat ...
75 views

### How to insert a function into OptionsPattern?

I’ve written a function TableauForm to draw a standard Young Tableau. This problem is related to this one, however, the difficulty is that, a function has to be applied to the list in my case. This ...
173 views

### FindRoot equation-variable mismatch

I cannot figure out why FindRoot doesn't work and returns this error: The number of equations does not match the number of variables in ... My problem: drawing ...
1k views

### ContourStyle for a particular contour line in ContourPlot

I have the following command: ContourPlot[(-1 + x)^2 (-1 + y) + x^2 y, {x, 0, 1}, {y, 0, 1}, ContourLabels -> True] which gives me I want to highlight the ...
149 views

### webMathematica on Linux

I have been using Mathematica and webMathematica (with application server) in Windows and it was working fine. Recently we changed to Linux, so I have to install both Mathematica and webMathematica ...
448 views

### How do I solve $1 - (1 - (A x)^2)^\frac{3}{2} - B(1 - \cos(x))= 0$?

Consider the equation $$1 - (1 - (A x)^2)^\frac{3}{2} - B(1 - \cos(x)) = 0$$ where $A,B \in \mathbb{R}$ are constants. What is the analytic solution?
104 views

I'm completely puzzled by the following codes: Clear[func, f] a = x^2 + z; func[k_] := Block[{f}, (f[x_] := Evaluate[(a /. {z -> k})]; f[1])] func[2] ...
210 views

### Pseudo-code for rules of probability?

I am having a hard time in Stats understanding some basic rules of probability and set-theory, namely $P(A|B)$, $P(A\ \textrm{and}\ B)$ and $P(A\ \textrm{or}\ B)$ where $A$ and $B$ depend on each ...
480 views

### A rotation-like transform on a matrix

Do not be confused with comments, those are for previous version of the question - Kuba Imagine I have a matrix of the form: ...
91 views

### Techniques To AutoReplace Browse

Let's say I have a function of the form. Test[File_,text_] What would be the most automated way and flexible way to generate an input cell of the form, such ...
135 views

### Changing ParametricNDSolveValue options for only part of the run

Here is an example of the system that I am running, ...
132 views

### DeleteCases vs. DeleteDuplicates for removing points within a critical Euclidean distance

I'm attempting to remove all points in an array which are within a Euclidean distance "ThresDist" of one-another. Using the command: ...
260 views

### Selecting morphological components, of a certain size, centered on points of interest in an image

I have a set of points in an image, for example: ...
137 views

### Strange behavior when replacing variables by numerical values [duplicate]

I have a rather complicated function with parameters {a, b, c, d, e, f, k}, and I'd like to know its behavior as a function of k alone given other parameters, so I try the following code: ...
229 views

### Connecting to remote kernel on iMac from a MacBook Pro client

I am having trouble setting up a remote kernel connection between my two Mac computers. The kernel on my iMac runs much faster than on my MacBook Pro, so I would like to run computations through my ...
396 views

### Plot the boundaries of each piece of a piecewise function

I'm wondering how to plot the boundaries of each piece of a bivariate piecewise function. Lets take for instance the following piecewise linear function $B_{111}(x,y)$: ...
380 views

### Problems with BarLegend in MatrixPlot

I have the following data: ...
583 views

### Can I define a function for vectors of arbitrary dimension?

Is it possible to do analytic calculations with Mathematica? For example, I want to compute: \partial \frac{\sum_{j=1}^n G_{j} \prod_{k=1}^{j-1} (1 - G_{k})}{\partial G_l}=-\prod_{k\neq l} ...
163 views

### Change CurrentValue of a key press

I was wondering if there is a way that I could change the value of a key press such as Shift, Ctrl, etc. Normally, when nothing is pressed, the CurrentValue will ...
2k views

### Hilbert-Huang transform package

I am trying to learn Hilbert-Huang transform (HHT) and its applications (especially in ECG signal processing). There are several HHT packages (scripts) HHT for R and Matlab. Is there any known ...
201 views

### How to group lists that own one common element?

I have produced a list of sub-lists by the following: ...
130 views

### Network problem of visualization of vertex

I have a question about visualization of network in Mathematica: for example: for this network g = ExampleData[{"NetworkGraph", "Friendship"}]; when we ...
218 views

### Expectation function does evaluate my expression

I am trying to evaluate the expression Expectation[(B x (-6 b + 12 a n0 + B x + B^2 x^2))/(2 (6 a + B x + B^2 x^2)), Distributed[x, BetaDistribution[α, β]]] ...