# All Questions

88 views

### NMaximize with matrix input

I defined function f[x_, fixed_] := {...}. Here x is an $M\times N$ matrix. I want to maximize $f$ with respect to $x$. I have ...
54 views

### Animated 3D graphics is low resolution [duplicate]

I'm trying to animate a 3D shape in Mathematica 7. It's working, but the graphics is extremely crude while animated. The resolution gets better if I stop the animation. Is there a way to get a nice ...
453 views

### Derive a smooth circle with cusp from an image

question 1 get the center (sample data) sample is the black circle with cusp. ...
59 views

### Color of numbers and defined functions [duplicate]

How do I change the color of numbers and the text representing defined functions in my notebook?
117 views

### How to export to .html .nb file together with links «in» and «out»

If use «File > Save As > HTML» links «in» and «out» are lost How to save a document without loss of these lines/links? UPD: You can write in the css rules (...
1k views

### Find radii of concentric circles in image

I have an image of concentric circles, I would like to find the radii of the circles (only the innermost few are important). I've had a go using what I could find in previous posts, but am a bit ...
144 views

### Importing Data with Line feeds

I am trying to import data from a CSV file into Mathematica that contains line feeds in certain elements that I wish to be properly rendered in Mathematica. I suppose this has something to do with the ...
158 views

### Effect of Block[] on iterators in Manipulate[]

The following is a toy example that hopefully shows the problem clearly enough. Why does the following code create a nice, manipulable output: ...
258 views

### Adapting “Find and Replace” functionality to work with Patterns

I was thinking if there is something like Find and Replace (Crtl+F) functionality adapted to work with patterns. Probably not, but it seems possible to create this with some effort and skills in ...
498 views

### How to simulate the response of a linear parametric varying system in Mathematica?

Consider the following system \begin{align} \dot{x}(t)&=\sum_{i=1}^{2}\rho_{i}(x(t))\left[A_{i}x(t)+B_{i}u(t)\right]\\ y(t)&=Cx(t) \end{align} with: ...
132 views

...
646 views

### Fixed color scale in multiple density plots with Fixed PlotLegends scale

From the great answer of Mr. Wizard, I would like to learn how to implement the associated PlotLegends scaled too. Here is the simplest example with PlotLegends, which does not look to be scaled: ...
127 views

### Exporting multiple arrays in a single HDF5 file in Mathematica 7

I am using Mathematica 7 and I need to export a table of data and the corresponding x and y arrays. I would like to format them ...
478 views

### How to graph a series of coupled oscillators and watch the wave move along them

Here are the differential equations that set's up the 11 coupled oscillators. ...
224 views

### How to apply a free-form input Function using InputField

I am trying to take a free-form input Function to create a list using NestList. ...
361 views

### InverseFunction on an Interpolating Function is misbehaving

I am getting strange behavior when I try to calculate the inverse of an interpolating function for two similar data sets. My data sets are: ...
909 views

### How to label axes in 3D plot adequately?

The following code produces plot with axes labels, which are jumping constantly. ...
41 views

### 3D plot changes it's size while rotating [duplicate]

When I am rotating drawn 3D plot by mouse it rotates Ok until mouse release. After that it slightly changes it's size instantly. Probably it tries to accommodate document layout or something. Is it ...
121 views

### Forming product of function of prime factors

Given a list of numbers each containing 2 prime factors, I wish to make a list of the products of the logs of each factor. For example, given L = {4,6,9}, I would like to form P = ...
347 views

### Unexpected result {“.a”, “co”, “.m”} from Sort[{“.m”, “.a”, “co”}]

I came across the following situation: Evaluating Sort[{".m", ".a", "co"}] Results in {".a", "co", ".m"} I wondering: ...
219 views

### Pattern definition for replacing plus and subtract

Suppose I have two functions $h_1(x)$ and $h_2(x)$, for which we know their sum and their difference: $$h_1(x)+h_2(x) = d(x) \qquad h_1(x)-h_2(x) = i f(x)$$ I have a complicated expression, in ...
557 views

### White spots in ListDensityPlot

I have a problem with ListDensityPlot. I have some data on an irregular grid. I try to plot them with ...
93 views

### Recurrence equations with periodic coefficient

Suppose I have the following recurrence equation: $$F_{i+1}P_{i+1}+F_iP_i-P_{i+1}+P_i=2J\,, \quad\textrm{with}\quad F_{i+L}=F_i,P_{i+L}=P_i\,.$$ $J$ is constant, $\{P_i\}$ are probabilities with ...
1k views

### Digital filter of image in Fourier space

Consider the contour plot below, of a function f(x,y) - which is calculated numerically by solving some equations. If one looks carefully, one can observe two types of waves, to the left and right of ...
230 views

### Write a function using pattern test to test whether the input is polynomial and print error message if not

I am doing this which is supposed to be an easy problem and which I think my code should be correct but for some reasons it is not working. May anyone help correcting my mistakes? How should I write ...
510 views

### Plotting rainbow circle [duplicate]

I am trying to plot a parametric circle in rainbow colors. It should go round once, but I'd like to be able to make it go round the rainbow an arbitrary amount of times. I currently have: ...
370 views

### Find elements of a list which are empty

Sorry for the most basic of questions. How would I find the positions of a list of elements which are empty, for example I have the list ...
102 views

### How can I control the controlplacement of Manipulate? [duplicate]

I want to place the Slider of manipulate as I want but I can't, help me to get rid of it ...
631 views

### Solution of equation with power series (perturbation)

So I need to use Mathematica to find the solution of $y=x- \epsilon \sin(2y)$ as a power series in terms of $\epsilon$. I'd assume I'd need to create an equation $f=x-y- \epsilon \sin(2y)$, then ...
63 views

### Changing GeometricBrownianMotionProcess function

Since the function GeometricBrownianMotionProcess is given by Mathematica I have some technical questions. If we consider the following example: ...
102 views

### Rounding only reals in an expression containing, reals, integers and symbols

I am trying to make a function that would make rounding real numbers in an expression possibly consisting of real numbers, integer numbers and symbols. An example of such an expression is below: ...
126 views

### How can I make images in the cell auto-adjust to some fixed-size

There is one auto-adjust item in the right-click menu of image in cell. And other related items are actual size and ...
752 views

### Aligning axes labels on multiple plots

I'm trying to create some "publication quality" figures, but Mathematica is fighting me all the way. So my question is: Should I switch to Origin? Please help! Well, all joking aside: I'm trying to ...
419 views

### Mathematica 9 can't integrate this function but earlier versions could

Integrate[ ArcTan[x]/(1 + x) Log[(1 + x^2)/2], {x, -1, 1}] I used Mathematica 9.0.1 on Windows7 32bit, Mathematica 9 cannot compute this, but Mathematica 8 gives ...
278 views

### label all vertices in polygon plot

Let's say I have the following plot Graphics[{Opacity[0.2], Rectangle[{0, 0}, {4, 4}]}] And I want to label all vertices on the graph to give their coordinates, in ...
876 views

### Why are my plots displaying behind the axes?

I need to create graphs with light gray axes and black lines. All of my plots display behind the axes. How can I make the plots display over the axes? ...
416 views

### Parametric Plot of coupled differential equations

I am able to plot a graph of all the differential equations, but I'd like a parametric plot of each individual one. Here is what I have so far. ...
373 views

### Create polygon using edge lengths and area

Four-sided convex land plots are usually denoted with edge lengths and area. How do I create a Polygon Object with these parameters in Mathematica ?
101 views

### Interpretation of output derivative expression [duplicate]

I am trying to write Mathematica file to find Div, Grad, Laplacian, etc. in coordinates ...
127 views

893 views

### Mathematica code for hidden Markov models (HMM)

I am looking for some simple Mathematica code to model an HMM with just a few states and an equal number of observable signals (emissions). I am hoping to generate sample paths and keep track of the ...
173 views

### Change the order of magnitude on the y axis Ticks with ListPlot

I have some data plotted with ListPlot. The values on the y axis range from -411230.40068*10^9 to -411230.20005*10^9. Mathematica, when plotting the data, shows me on the y axis only the value ...
138 views

### Double Integral and Assumptions

I'm afraid this is going to be a really stupid question. Evaluating the following definite integral Integrate[Sqrt[1 - (x^2 + y^2)], {x, -1, 1}, {y, -1, 1}] ...

15 30 50 per page