# All Questions

8 views

### Tree graph showing the orbits under the Collatz map?

ReverseCollatzPaths is a nice demonstration of a radial tree graph showing the orbits under the Collatz map. However, Jason Davies gives, I think, a nicer visulalization using Python, with a ...
16 views

### How to draw the pentagon or hexagon into the square size image

I have the image of square or rectangle sized i want to draw the pentagon or hexagon line in the image.
19 views

### Efficient List of Lists

I'm running some analysis that requires the creation, row by row, of a large list of lists. The big list is called "Nodes" and it will ultimately contain hundreds of thousands of rows. The first few ...
27 views

### How to get partial results from Subsets[]? [duplicate]

Oftentimes I am searching for the first item in a sequence that satisfies some property. For example, consider the subsets of prime numbers whose total is prime. To start generate them, we could ...
14 views

### ArrayPlot: colours depend on image size?

ArrayPlot is giving me incorrect colours when the image size is less than about 10.5 times the number of pixels in the input array. For example, ...
6 views

### How to mathematically prove that the continuous data is better for finding out the correlations than the binary data? [migrated]

If I want to calculate the correlations among the components in a vector space using the MLE with a prior of multivariate Normal distribution, which kind of data should be better? The binary data or ...
22 views

### Image manipulation is too slow

When I hit shift+enter at a document, I must wait for a long time. But AbsoluteTiming function indicates it just spent under 1 second. as follows. I think it shows that only 0.24sec took to ...
17 views

### How to count the number of values in a discrete function?

I have a discrete function of an integer variable $n$ defined like this : ...
21 views

### Undeclared Identifier error in Compile

I've been trying to compile a couple of functions in Mathematica, and I keep coming across an error that I do not know how to resolve. Consider the following function: ...
33 views

### Delete vertices of degree 2 and rewire graph

I want to delete all vertices of degree 2 from a graph and rewire it. Given a graph like graphA, I want to obtain graphB. ...
86 views

### Replace matrix rows conditionally while avoiding For loop

I have the following variables: myMatrix={{0,0,0},{0,0,0},{0,0,0},{0,0,0},{0,0,0},{0,0,0}} myIndices={1,3} I need to replace the rows ...
34 views

### Position not working? [on hold]

I have the list: myList={0,0,0,a,b,c,0,0,d} I need to find the positions of all elements that are non-zero. I do like this: ...
55 views

### DSolve returns an answer that is not a solution

Investigating DSolve misses a solution of a differential equation, I came across this odd behavior of DSolve. The following DSolve command returns an answer to the ...
34 views

### Plot is wrong for oscillating function [duplicate]

It doesnt even oscillate that much Plot[Exp[-Pi x^2 + I ( 60 1/(x^2 + .6) + 0.2)] // Re, {x, -2, 2}, PlotRange -> Full, MaxRecursion -> 15] What is ...
38 views

### How to define a bivariate skew normal distribution?

There is BinormalDistribution that handles easily bivariate normal distribution and its mixtures. There is also ...
24 views

### How to (efficiently) export the tutorial files as PDF?

The English version is freely available online at wolfram learning center. I also have a Chinese version of Mathematica 9.0.1. I wonder if there is an easy way to export the help files as PDFs from ...
39 views

### Plot experimental data from .dat file [on hold]

I have a huge table of 42 columns of data in a .dat file, which I need to plot as a 3d-plot. How can I do that?
53 views

### NonlinearModelFit::nrnum error

I'm trying to fit data (including some small negative numbers at both extremes) to a normal distribution. ...
46 views

### How to replace element by element in a list? [on hold]

I have the list: myList={{a,b,c},{d,e,f},{g,h,i}} I need to transpose every element individually, so I do: ...
36 views

### Extending Button's Method -> “Preemptive” 5 second timeout

This is an example from the documentation for Button : ...
68 views

### How to make sense of LowpassFilter, SampleRate and the cutoff frequency ωc in different Mathematica versions?

How do you make sense of the scale of "time" and "sampling" when using LowpassFilter and SampleRate ? Given the test data with ...
31 views

### Mixture of a bivariate distribution defined as a copula

I define a bivariate distribution: ...
100 views

### How can I prevent SHIFT-ENTER moving the editing cursor?

What I do: Here press Shift+Enter to evaluate. What I get: The cursor disappeared What I want: The cursor retained Workaround: Up Arrow as many times as it takes, Right arrow as many times ...
64 views

### Substitute a function's definition for its name

I'm having trouble with a function which is supposed to work on another function. Simplified version: ...
27 views

### What is diffusion map? [on hold]

I have trying to understand this diffusion map,I know it has something to with statistics and reducing no of variables in calculation, I was reading a article which uses this diffusion map to ...
36 views

### ListLogPlot error when forcing y axes start at 0

I came across an error I can not circumvent. When plotting the following: ListLogPlot[Table[1/x, {x, 1, 100}]] I receive a functioning plot. If I now want to ...
28 views

### How can one easily toggle the “insufficient version” warning message in CDF and Mathematica?

Unfortunately people use different Mathematica and CDF versions and the default setting of "InsufficientVersionWarning" in MessageOptions is True both in Mathematica and the CDF Player (which is quite ...
89 views

### Efficient upsampling of multidimensional array

I would like to efficiently upsample a multidimensional array. It's a 5000*5 matrix where each element is a submatrix 12*12 and it is that 12*12 matrix I want upsampled (to 24*24). The upsampling ...
140 views

### Mathematica 10, Show, and PlotRange

I have recently moved from Mathematica 8 to Mathematica 10, however I'm having a problem with PlotRange->All in combination with Show[]. For example, ...
51 views

### Options for a function I define that can be passed to functions I call in the definition

I know, this is very close to Functions with Options and/or Function with custom Options and modified Options for built-in Symbols, but I don't get it. My function looks like this one: ...
18 views

### cumulative probability about the number of variable [duplicate]

the codes are: ...
26 views

### Specifying a PopupMenu in a Manipulate expression

In my previous question here, I had a problem with showing GeoGraphics in a CDF document, but thanks to other users, I was able to solve it. But the code I wrote to test my work gave an error. I tried ...
147 views

### How to change the font color of a variable in whole input cell

I want to track the occurrence of a particular variable in a code. So the idea is to change its color. Usually I do it in a crude way - convert the code into text and then use ...
33 views

### DateListPlot incorrect time zone

I'm trying to plot energy usage over time using datelistplot but the time zone on the ticks is wrong, data for 7pm shows as 3am The code: ...
37 views

### Control line wrapping within a Grid cell

I'm trying to display a number tables of data in my document which have column headings that are longer than the cell width for those columns so they need to wrap within the grid cell. I have no ...
71 views

...
47 views

### Problem in the solution of the simultaneous Ordinary Differential Equation

When i am running the following command ...
59 views

### Plot given points, lines and arcs in 3D

I need to plot 6 points in 3D. I used the command 'Plot' but I couldn't draw it. The coordinates of points $A,A',B,B',C,C',D$ are given. $AD,BD,CD$ are straight line segments $AA',BB',CC'$ are arcs ...
45 views

### Why can't I paste data from Notepad into Mathematica 10 in Windows 8.1?

I can't paste data that I have copied from Notepad in Windows 8.1 into Mathematica 10. I was able to do this when I had Windows 7 and Mathematica 8. Now when I try to paste into Mathematica 10 using ...
90 views

### Change in Lighting and Show in V10?

According the documentation for Show: Options explicitly specified in Show override those included in the graphics ...
24 views

### Why does my contour plot have missing blotches? [on hold]

I think it may have to do with areas on the plot that are very small in value.
37 views

### Incorrect Display on Linux (+HiDPI)

I have Linux on a HiDPI laptop, and after first installing Mathematica, the default font size is far too small: After searching for a few solutions, this can be fixed by either changing the ...
88 views

### Module inside of Manipulate Example

Here is a very nice example from The Student's Introduction to MATHEMATICA. ...
33 views

The input ...
55 views

### Problem Using Evaluated Replace with Associations

If I define some function like: toISOdate[data_List]:=DateString[data,{"Year","-","Month","-","Day"}] and try to applicate it in an ...
59 views

### PDE: solving Fokker-Planck equation with initial and boundary condition [migrated]

Here is the problem. We have the following simple PDE: \frac{\partial p(x,t)}{\partial t}= - a\frac{\partial p(x,t)}{\partial x} + \frac{D}{2} \frac{ \partial^2 p(x,t) }{\partial ...
39 views

### Change Property without re-evaluating [duplicate]

I am working with ContourPlot3D, and my expression takes a long time to evaluate (nearly 20 minutes). So I am wondering if there is a method to changing format ...
37 views

### If a given # is 70% of X. How do you determine what X is? [on hold]

given I have the number 50,000 which is 70% of X. How do I calculate what X is without guessing. Thanks