1
vote
1answer
147 views

Need assistance with plotting Cell Center Points and Normals (ListPlot, ListVectorPlot)

This is the CellCenter datapoints and associated Normals data: http://wikisend.com/download/458974/CellCenters-and-Normals.dat The dat file contains data points for x,y coordinates and x,y ...
4
votes
1answer
132 views

Closed form for convolutions of random variables

Is it possible to get Mathematica (9) to calculate PDF's for combined distributions? I can't seem to find the right notation, if this is possible at all. My attempts: ...
30
votes
2answers
1k views

Generating “Penrose-style” drawings of surfaces

In The Road to Reality there are plots of surfaces that use a variable density of dots to suggest curvature. You can see some examples here and here. I suppose they've been drawn by Penrose, but ...
1
vote
1answer
317 views

Gauss Markov Process

I am trying to model a 1st order Gauss Markov Process (gyroscope drift). I know the Allan Variance characteristics of the process (bias instability, random walk characteristics). I know the model ...
4
votes
1answer
261 views

How to force Pane to always scroll to end of content? [duplicate]

Mathematica seems to know about the actual end of content position in a Pane if given large enough (but not too large$^1$) initial position value. Here, the ...
5
votes
3answers
907 views

Remote Mathkernel: SSH encountered a networking error while launching kernel Error code = 1

I have a problem concerning the connection to a remote kernel via ssh on a vpn. I found a working configuration in this question: Connection to remote kernel can not be established - No specific ...
1
vote
3answers
2k views

How can I use assumptions with FindRoot?

I have something like FindRoot[f[x], {x, a}] Now I want FindRoot to constrain the solutions to 0 < x < 1. How can I ...
15
votes
3answers
2k views

Making Axes logarithmic in 3d plots

I've been trying to get loglog plots in 3D, but to no avail. My initial approach was to take the logarithm inside the plot i.e ...
1
vote
1answer
236 views

Troubleshooting an NDSolve::ndfdmc error message

Τhe following code ...
1
vote
1answer
137 views

Using only two colors in a ListPlot3D

The data I have given here will plot the data in ListPlot3D function and gives the visualization of bars on the plot. I want to customize the color for the bars in ...
-1
votes
3answers
203 views

MixtureDistribution in Mathematica 7

Is it possible to use a mixture of several distributions in Mathematica 7.0? Consider for example the following code : ...
2
votes
1answer
195 views

Extracting information from list

I have a huge list that looks like this: ...
-2
votes
1answer
117 views

How can I check which file is modified in specific directory?

I want to find which files are recently modified in a specific directory. For this purpose, I wrote a function named Test. The function's argument is ...
1
vote
0answers
237 views

Can not launch Mathematica 8 on Lubuntu

I am trying to launch Wolfram Mathematica 8 Home Edition. The installation itself occurred without a hitch. Note: "..." indicates my machine name, username, etc. Linux Version ...$ uname -a Linux ...
7
votes
2answers
2k views

How do I simplify a vector expression?

I am doing vector analysis. I have figured out that the following expression won't be simplified in Mathematica: Simplify[Dot[x, y] - Dot[y, x]] I think the ...
6
votes
3answers
372 views

Counting the number of a specific type of permutation

In the theory of cumulants of vector-valued random variables, the following types of formulas appear: \begin{equation} \theta^i \theta^{jk} [3] = \theta^i \theta^{jk} + \theta^j \theta^{ik} + \theta^k ...
12
votes
9answers
450 views

Dropping n consecutive terms from a list periodically

Suppose I have the following list lis = Range[100]; and I want to remove n consecutive terms periodically from the list. For example suppose I want to drop terms ...
4
votes
0answers
209 views

Why FrontEnd`KernelExecute doesn't work in KeyEventTranslations.tr?

Which commands can you put in KeyEventTranslations.tr ? There is an extensive list of FrontEndTokens, but what else can you use? Why something like this doesn't ...
0
votes
1answer
311 views

Evaluating FindRoot at different starting points on a grid

I'm trying to evaluate the roots of a complex function at different starting points on a grid using Do[Do[FindRoot[g[z], {z, j + k*I}], {j, 10}], {k, 10}]. However, ...
3
votes
1answer
176 views

Issue with ListConvolve

I am a new Mathematica user, learning the intricacies of functional programming. I have issues withe applying a function over a moving list. My function seems to work and give correct results but it ...
7
votes
4answers
518 views

How make f[{x,y}] evaluate as f[x,y]?

I frequently encounter the situation where I have a function of two real variables defined, e.g.: f[x_, y_] := 9 - x^2 - y^2 But then I need to feed into ...
2
votes
1answer
120 views

Detect Standalone CDF vs Browser Plugin environment [duplicate]

Recently, Wolfram informed me that there's no way to have a Print button in a CDF running within a plugin environment since the plugin does not interact with the operating system. If you have a way to ...
8
votes
1answer
185 views

How can I add a background to a stylesheet?

In version 9 we can set the background to an image, however I'd like to save this into a stylesheet that can be installed.
7
votes
2answers
726 views

How to change coordinates of integration?

Is there some built-in routine, some easier method to change variables of integration, without/before solving the integral? Say I have ...
1
vote
0answers
130 views

Plotting an array of data onto a sphere [duplicate]

See the link to plot at the bottom of this post, it is a function of the spherical coordinates theta and phi. It is generated by MatrixPlot of an Array of data. I would like to plot this onto a sphere ...
5
votes
2answers
401 views

Is there an $n^{\text{th}}$ root function in Mathematica?

Is there a way to find $\sqrt[n]{x}$ with Mathematica beside of x^(1/n) as this is something different, because this is not always the same $$(-1)^{\frac{2}{4}}=i ...
0
votes
0answers
74 views
8
votes
1answer
325 views

What is the confidence limit on this convergence?

When I run this, Product[n^MoebiusMu[n],{n,1,Infinity}] I get $\frac{1}{4 \pi^{2}}$ Over on Math Overflow they are saying it shouldn't happen. So, how do ...
2
votes
3answers
979 views

Multiple assumptions in integral

I want to add two assumptions, so I can get this probability density function to equal 1, though I can't get a solution. ...
3
votes
4answers
609 views

Extract function arguments

Is there a way to extract the arguments of a function? Consider the following example: I have this sum ...
4
votes
4answers
363 views

How to transform Do loop to more efficient codes?

I'm new to Mathematica. Here is my original program: How to rewrite the Do part? ...
11
votes
3answers
522 views

Efficient implementation of a linear complexity measure of binary sequences

For a implementation of testing the quality of random number generators I implemented the NIST test suite in Mathematica based on the nice workbook by Ilja Gerhardt. However I took up the challenge ...
10
votes
4answers
790 views

Coloring Points in a Plot, based on their position in the list

Before I describe the question, I'd like to say that I've seen the excellent answers posted here but have not managed to get them to work for my own data. I have a list of values that I would like to ...
21
votes
2answers
1k views

Making a presentable BarChart

I've been asked to reproduce a bar chart generated in Excel in Mathematica. The original Excel chart looks like this; My Mathematica version looks like this; There are a couple of things wrong ...
12
votes
2answers
402 views

How can I create an advanced grid interface on Mathematica?

Working on a CDF for report creation, I miss having a nice grid interface, where I would have basic operations like being able to sort a columns by clicking on the columns head (ascending and ...
3
votes
1answer
711 views

Increasing the size of numbers in a legend bar

I would like to know how you go about increasing the size of numbers which appear in a legend to make them larger than the default (which is too small for publication purposes). Example: ...
1
vote
1answer
123 views

Output Export in Mathematica

I have a command line that generates lists as output and is running in a loop, so generates, multiple long lists. Each list is to be exported as a .txt file. How can I automate the name generation of ...
1
vote
1answer
190 views

Function definitions in init.m don't work

I can't get any function defined in $UserBaseDirectory/Kernel/init.m to work. For example: ...
7
votes
2answers
254 views

Solving variant of the knapsack/money-changing problem

I'm trying to solve a variant of the knapsack/changing money problem where I have a set of a few numbers and I'm trying to find the linear (integer) combinations of them which are close to a given ...
3
votes
3answers
623 views

ParametricPlot and PlotLegends don't seem to cooperate

I noted that only part of the legend shows up in ParametricPlot using v9's PlotLegends: ...
3
votes
2answers
255 views

Find the a factor of an integer which is nearest to another integer

If I know two integers $n$ and $m$ and $m < n$, how can I find two different integers $x$ and $y$ that are nearest to $m$, and satisfy Mod[n,x]==Mod[n,y]==0 ? ...
3
votes
1answer
187 views

Sum of positive terms gives negative answer

Mathematica evaluates Sum[((n - y - 1)*(n - y)^2*n^y)/y!, {y, 0, n - 2}] as -2 e^n n. This should not be a negative value. ...
3
votes
2answers
316 views

Why does the first derivative of a piecewise continuous function have discontinuities?

I have this piecewise continuous function which is also continuously differentiable over time : ...
3
votes
3answers
256 views

How to paint part of DateListPlot?

My graph is about fires (burned area) over 12 years presented in one Date List Log Plot. Because most of fires are in summer (as expected) I would like to highlight that with different background ...
7
votes
1answer
137 views

Can I set 'no-go' values in a Manipulate slider?

Is it possible to easily modify a Manipulate such that the slider automagically skips certain values? For example, say I am plotting an equation that's perfectly ...
12
votes
5answers
759 views

How stretch curly brace on multi-line text?

What's the cell option (or other technique) to use to stretch the curly brace that one typically uses in traditional math to group several displayed equations? Like this: And is there any better ...
0
votes
1answer
398 views

How to use Compile for accelerating matrix multiplications?

I am trying to find the inverse of the matrix $A$ m = n = 500; SeedRandom[123456]; A = RandomReal[10, {m, n}]; iteratively using the following matrix ...
3
votes
1answer
637 views

How do I read a CSV file and remove comments from it

I have very recently started using Mathematica 9.0 Home Edition and am trying to understand it as best I can so please be tolerant ;). I have a file of data (sugar.csv) which contains blood sugar ...
4
votes
1answer
2k views

Transform 3D data into 2D color map like Matlab's surf/imagesc

I have a bunch of 3D data (x, y coordinates and values) which is generated in Matlab and I need to render them in a 2D color map with certain axis ranges. Here are the Matlab code and the generated ...
0
votes
1answer
246 views

NumericQ prevents evaluation at a numerical value sometimes

I set up a symbolic integral, to be evaluated only when some of the symbols have been replaced by numbers. The evaluation after assigning numbers to the symbols is still symbolic for some reason. The ...

15 30 50 per page