# All Questions

186 views

### Convert probability example to a distribution

Consider a box which contains 30 balls. 10 red, 10 white and 10 blue balls. There will be picked 4 balls randomly, without putting the balls back to the experiment. My question is: How do I create a ...
2k views

### How to plot 2D plot against two functions [closed]

I need to Plot two functions one is on x-axis and second on y-axis, both function have common variable $x$. The two functions are ...
634 views

### How to open/close all collapsed/open cells?

Is there a way to open/close all collapsed/open cells? The reason is for a long notebook, it is convenient to see all the section and subsection headings at once.
594 views

### How Do I Plot Histograms and Binomial Distributions Side by Side?

Here is the code I thought might yield up two histograms and two binomial distributions plotted side by side: ...
191 views

...
356 views

### How do I find the best fit?

I am trying to solve following system of three differential equations ...
108 views

### Strange behavior of Mathematica regarding calculation time

Today I witnessed the following strange behavior of Mathematica, when it comes to calculation time involving larger nested lists. The following is the short example that I setup, I am sure one can ...
227 views

### Why doesn't the FileNameSetter button work in my DialogInput?

I am new to Mathematica, so it's probably a small error but I can't figure it out. Here is the code : ...
397 views

### Cropping an image to a minimum bounding box for a set of points

Imagine a define a pointlist inside of an image: Provided a pointlist for the set of red dots around the toy horse, is there a way for me to automatically crop to a minimum bounding box for this ...
79 views

### Why do two codes give different output?

I have tried the following to get the eigenvalues of several matrices of the type: ...
470 views

### Defining and isolating a region of an image internal to a bounding curve

I was recently looking over this very nice question by March Ho: Counting elements which are inside another element on a different colour channel There are often times where I find myself wanting to ...
588 views

### select subsets of elements of a list under a certain condition

I am new in Mathematica and am stuck on a simple problem. Please advise: I have the following list: list = { {"1", 1000}, {"2", 800}, {"3", 800} }; I want to ...
158 views

### List manipulation, replace a value [duplicate]

I have the following list: ...
3k views

### Axis/Angle from rotation matrix

With r=RotationMatrix[a,{x,y,z}] I can compute a 3D rotation matrix from axis/angle representation. Given a 3D rotation matrix ...
201 views

### Combination of a Contourplot and a Graphics Object

I want to combine the following to graphs. ...
608 views

### Color of a plane in Contourplot3D

I have the following code example: ...
292 views

380 views

### Simplify function with normalized vector

I made a very simple case: testF[x_, y_, z_] = x^2 + y^2 + z^2 Simplify[testF[x, y, z]] If {x, y, z} is normalized, the simplified result should just be 1. How ...
39 views

### Plotting list-valued interpolating function [duplicate]

I have an interpolation function which returns a list, e.g.: f=Interpolation[{{1,{1,2,3}},{2,{4,5,6}}}]; When I try to plot it, I get single-colored curves. ...
339 views

### Riemann-Spherical Projection of Network onto the $\mathbb{R}^2$-Plane

I'm trying to find a way to plot the graph ...
612 views

### How to strip all formatting from a string and convert it to plain text?

The documentation on String states: But if I try to perform some manipulations on this string, for example, take 2 words from the left, I get some shards of ...
I have this task with two questions I would like to compute in Mathematica. Suppose a pair of random variables $(X, Y)$ has a equal distribution on the following 7 points: \$\begin{matrix} ...