6
votes
1answer
379 views

How to solve this probability symbolically or numerically?

I am trying to calculate the following probability $$\mathbb{P} \big(\sum_{i=1}^{m} (A_i + S_i) \le L < \sum_{i=1}^{m+1} (A_i + S_i) \big)$$ where, $$A_i \sim \exp(\lambda), \quad S_i \sim \exp(...
14
votes
2answers
363 views

How to do algebra on summations of variable expressions?

Is there any easy, general way to handle algebra on variable Sums? For examples, Gaussian Mixtures or Fourier Series: ...
2
votes
1answer
99 views

Sort a vector of vectors of vectors

Let's hope I'm calling it well, I have this vector, or matrix, now I really don't know what it is ...
1
vote
0answers
49 views

Displaying a matrix as an array of solid rectangular blocks [duplicate]

I would like to plot an array of numbers as a surface, with each number the height of a square, and with the squares connected to adjacent squares with vertical rectangles, up or down as appropriate. ...
2
votes
2answers
196 views

3D Probability distribution

I have a structure like this: ...
0
votes
2answers
86 views

Why Mathematica cannot tell if Sqrt[Abs[u0^2 + v0^2/b^2]] is positive?

In the code below I was careful to declare all variables as real and to use Refine. Still, Mathematica cannot tell that a sum of squares is a positive number. What am I missing? Thanks to ...
3
votes
2answers
159 views

How do I add Hyperlinks to usage text?

I want to include a Hyperlink inside of a usage. For example: ...
3
votes
3answers
468 views

Plotting a plane using intercepts

I have a plane 2x + 5y + z = 10. I have determined that its intercepts are: x = 5, y = 2, z = 10 I need to use ...
2
votes
2answers
280 views

Speed up ContourPlot

I created the following code, but the contours are drawn slowly with the movement of the slider, could you advise me how I should optimize the code? ...
1
vote
1answer
109 views

Manipulate using DateObject

My question is about making a animiation using 'manipulate' using DateObject as parameter. I start with importing a file.txt, like: ...
1
vote
1answer
143 views

Why is ((v k)^-n (k v^n - v k^n))/(n - 1) == b so hard for Mathematica to solve (for v)?

I've tried using both Solve and Reduce. For something that takes maybe 3 minutes to solve with paper and pencil, I'm very ...
1
vote
1answer
144 views

Country density plot of lines (highways)

I love solution from question (histogram as well as distrubution) http://mathematica.stackexchange.com/questions/31948/show-density-plot-on-us-map#=. But both cases are a bit more difficult in my ...
2
votes
1answer
522 views

thicker axes in 3d plot

I am new to Mathematica, and am not able to figure out how to make the axes in a ListPlot3D plot thicker. For some reason assigning a larger value to FontSize doesn't do anything. Would appreciate any ...
0
votes
1answer
71 views

ListContourPlot3D won't plot

According to the MMA 9 help: ListContourPlot3D accepts input as {{x1,y1,z1,f1},..........} and at position ...
4
votes
1answer
220 views

How to evaluate differential entropy from raw data?

I want to evaluate the differential entropy according to here $$h(X) = - \int f(x) \log{f(x)} dx$$ where $f$ is the probability density function. Lets create some test data (normal distribution): <...
1
vote
1answer
85 views

Different distance in .jpg plot and .eps

I noticed that when I run my code to draw a plot: ...
1
vote
0answers
31 views

Greek symbols are all bold in MM 10 over Linux [duplicate]

I upgraded recently to Mathematica 10, on a Linux system, and I'm quite annoyed to find that all the greek symbols automatically show up in bold: I suspect the issue is some missing font somewhere ...
5
votes
2answers
111 views

How to write Mma notebook input that modifies itself?

Is there a straightforward way to reference and modify a cell from within itself? This is a little outside the ordinary use case and certainly not good practice, but I would like to execute an input ...
0
votes
1answer
138 views

Distribution of block maxima of gaussian random variables

I try to verify the following result of extreme value statistics that the distribution of the block maxima of Gaussian random variables converges to a Gumbel distribution. To this end, I first ...
5
votes
2answers
281 views

Plotting bug in Mathematica 9.0

I want to plot transition dipole moment vectors at their respective positions. For example, given a transition dipole moment with position vector R, I want to draw ...
3
votes
1answer
419 views

Pie/doughnut chart smarter labeling

There are numerous options in Marthematica for pie chart labels positioning: ...
0
votes
0answers
252 views

Distance between ticks and axes [duplicate]

I've created a plot using the following code: ...
2
votes
0answers
87 views

Draw segment in arrayplot and get intensity value and coordinates in segment

I want to segment an arrayplot donut in to 6 pizza slices and export per segment the coordinates and intensity values of the pixels inside of it. I found a good example, which used RegionMember to ...
0
votes
2answers
113 views

Is this answer true?

I was using Mathematica to get the series solution for Legendre equation. But when I get the recurrence relation and use RSolve: ...
3
votes
1answer
164 views

Easy way to perform multiplication of two 2x2 matrices, that contain list elements?

I have two 2x2 matrices, which elements are lists (so overall structure can be complicated). I need to perform matrix multiplication of these 2x2 matrices as if the elements didn't have its inner ...
8
votes
2answers
533 views

Mapping StreamPlot onto spherical surfaces

Suppose I have some vector field equations $(f(\theta,\phi), g(\theta,\phi))$. The StreamPlot can be created easily in 2D, but I would like to visualize the stream ...
1
vote
0answers
83 views

Automatically sizing elements in a DistributionChart with custom ChartElementFunction

This is a follow-up to some related questions: 46770 and 60600. I'd like to make a DistributionChart where the elements are histograms with my own custom ...
5
votes
3answers
895 views

Equation is solved quickly using Solve but takes too long using NSolve

I have the following simple command to solve for h in an equation: Solve[(1 - 2.25577*^-5*h)^5.25588 == 0.9644952131579817, h] ...
6
votes
1answer
575 views

How to download and combine S&P 500 stock prices

I want to download historical S&P 500 stock prices and combined them into one big file, having only one column of date referencing all stocks. Here is what I have do so far. ...
6
votes
2answers
144 views

PolarPlot with Dashed and PlotRange freezes for simple function

When I plot PolarPlot[1/(1+Cos[6-t]), {t,0,2\[Pi]}, PlotRange->{{-4,4},{-4,4}}, PlotStyle->Dashed] everything works normally, but when I change the ...
0
votes
1answer
169 views

How do I declare that a variable represents a real number?

How do I tell Mathematica that a variable is a real number. I searched for this question here and in Google and nothing that was suggested seems to work for me. I must be missing something. My code is ...
1
vote
3answers
504 views

How to import files with headers?

R has excellent header supports such as read.table with header options. I don't want to mess up with text-processing or stream-processing. I am looking for a similar tool as in R because it saves a ...
2
votes
1answer
513 views

Place legend without border above the plot

I use Mathematica 7.0 and as far as I know, there is not method PlotLegends, only PlotLegend. I want to set my legend - without background, shadow and frame - above my plot, as in the example belowe: ...
0
votes
0answers
47 views

Is there a fast method to open the Format> Font dialog? [duplicate]

I would like to rephrase my older quastion about shortcuts. Excuse me for any possibe dublicates! My problem is that I spend a lot of time to go to menu Format> Font> choose a font and a font ...
2
votes
0answers
62 views

Is it possible to import Spell Check and Hyphenation Rules from OpenOffice.org?

Is there a way to import in Mathematica a dictionary(Spell Check and Hyphenation rules) from OpenOffice.org? Or at least, is there a simple way to programatically correct and hyphenate the text in the ...
3
votes
1answer
213 views

Plot: How set markers in plot in front of axes

I draw a plot using ListPlot. But I noticed that PlotMarkers are 'covered' by the axes; see example below: I was trying to ...
1
vote
0answers
45 views

Is it possible to have Crop marks for camera alignment and visualizing purposes?

I am looking for a simple way to put crop margins in Mathematica's PDF output like the Crop package in Latex. Could be this done with Mathematica's Frontend or do I have to use an external program?
1
vote
1answer
51 views

How could I have each new cell framed?

I am looking for a way to have a frame around each new cell of any style in Mathematica. This is very helfpful for me because I have an optical guess where to put the hyphenation point( -) before the ...
1
vote
1answer
159 views

Computing Domination Numbers of Graphs

Is there a way to get Mathematica to compute the domination number (size of the smallest dominating set) of a graph? There doesn't seem to be a direct command for this, so I'm not sure if there would ...
6
votes
5answers
631 views

What is the best way to draw a shaded table?

I'm trying to format a raster-style table with row and column headings and in which each cell is shaded according to the value in the cell, and the value of the cell is displayed in as text in a ...
6
votes
0answers
204 views

How to determine foci colocalization in a microscopy RGB image

I have a series of microscopy RGB images of the cell nucleus like this one The red and green dots are clusters of different proteins and I would like to determine when these dots colocalize. ...
8
votes
3answers
188 views

Pattern matching: Times[a_] vs Times[a__]

I don't understand why MatchQ[ HoldComplete[Times[3, 2, 2]], HoldComplete[Times[a_]] ] is returning True. I thought that ...
1
vote
0answers
40 views

Apparent issue with derivative of FractionalPart [duplicate]

This issue came to my attention from Math.SE: http://math.stackexchange.com/questions/1015325/is-the-derivative-of-x-on-0-1-always-equal-to-1/1015342#1015342 To summarize, it appears that ...
2
votes
2answers
111 views

padding with zero in Table

I am creating a grid as ...
2
votes
1answer
238 views

matrix multiplication speed

Consider the codes below: ...
2
votes
2answers
102 views

Parabola plotting tangential to x = const, and y= const

ContourPlot[ pm Sqrt[x - a] + pm Sqrt[y - b] == Sqrt[c], {x, 0, 2 a}, {y, 0,2 b}] plots a parabola, but only a part between points of tangency (a, 0) and (0, b)...
1
vote
1answer
60 views

Speed optimization of Mean calculation in a previous calculated data range

I have following problem: My calculations work quite well with the shown testdata, the only problem is the speed of it. My original dataset is about 64000 datapoints, and it takes several minutes to ...
16
votes
1answer
360 views

Why does this line increase the consumed memory?

Probably this is a simple question, however I really don't understand this behavior in Mathematica. It particularly leads to a memory leak in a huge program I have to do processing of 3D images. I ...
2
votes
2answers
265 views

Opacity function applied to Graphics Objects

I think this is a stupid/banal question, but I have searched the forum and I haven't find a solution (yet). I need to apply a variable opacity function to a graphics object (say a rectangle). For ...

15 30 50 per page