# All Questions

60 views

### Simplifying Expressions for FindMinimum

I am currently trying to apply the FindMinimum function to find the lowest energy of an expression. My current expression as of now is relatively complicated. It is the summation of 48 similar terms, ...
108 views

### How are p-values in fittings estimated?

I am trying to understand how p-values retrieved in a ParameterTable estimated but I couldn't find any specific information in the documentation about this. For instance, considering ...
76 views

### How can I remove the decimals in the frame ticks?

Is there any way to remove the decimal places in the frame ticks. I would like to make the y axis ticks integers. I use the following code. My only problem is how to manipulate the y axis without ...
93 views

### Sections with unidirectionally shared variables

I have 2 sections is my notebook: ...
45 views

### calculate relationship between cause and effect (rows/columns/delta etc.) on tableform

I tried to enter this Excel (on the right of the picture) information to program. following these codes has been used: ...
114 views

### LineLegend behaves differently in ListPlot in Mathematica Version10.0 or later

Suppose I want a line legend for a list plot: ...
81 views

### All value types for a symbol?

Robby Villegas here shows a nice way to see all the types associated with a symbol. He sets a symbol, valueTypes, to an explicit list of the values types in ...
56 views

### Reverse of Apply on built-in functions [on hold]

So if I have can use Apply and Or in combination: Or @@ {a, b, c, d} Out: a || b || c || d One could also use Or[a, b, c, ...
192 views

### Suppress Print[ ]s?

I have a complex program that prints out lots of diagnostic/tracing information. Is there some mechanism to evaluate it and suppress all printing? I know I could protect every ...
55 views

### Create a sum with the Do function and modules

I should define a function which sums up from k=0 to 100, with x=1; using the ...
58 views

### Replacing the Slot in an expression

So I've got Mathematica to handle the grunt work for me to obtain expression: Root[ (* blah, blah *) + #^2 + (* etc, etc *) ] Now, the value inside Root is a ...
108 views

This question may be closed as "too localized". I post in the event other users have had this error and resolved it. The problem: inability to use "ReliefMap" or "ContourMap" options for ...
60 views

### Numerical integration giving trouble [on hold]

Recently I have been struggling with this problem and I think an outside look (and expertise) is what I need. I have a set of equations that in the end give me the tuple ...
49 views

### I have a problem in plotting simple Exponential Equation? [on hold]

The simple piece of Code is given below. ...
56 views

### Is there a better way to get nice looking equations in output?

I use Mathematica regularly for my schoolwork, however it's arduous to use TraditionalForm[HoldForm[f[x]==x]] every time I want it to spit out a good-looking bit of ...
63 views

### I want to draw my data on desktop by mathematica [on hold]

Hello Mathematica users, I have problem to set working directory, I want to draw my data on desktop , the data input file 2.data, i using mathematica 10 on mac Set Directory["~/Desktop"] please help ...
76 views

### ColorReplace does not work

I want to do - seemingly - simply image processing. I want to replace all blue pixels with white pixels. The obvious command would be: ...
33 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 ...
55 views

### How to draw the pentagon or hexagon into the square size image [on hold]

I have the image of square or rectangle sized i want to draw the pentagon or hexagon line in the image.
140 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 ...
37 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 ...
29 views

### ArrayPlot: colours depend on image size? [on hold]

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, ...
11 views

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

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 ...
74 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 ...
57 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 : ...
34 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: ...
70 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. ...
232 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 ...
43 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: ...
69 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 ...
38 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 ...
46 views

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

There is BinormalDistribution that handles easily bivariate normal distribution and its mixtures. There is also ...
29 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 ...
44 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?
66 views

### NonlinearModelFit::nrnum error [on hold]

I'm trying to fit data (including some small negative numbers at both extremes) to a normal distribution. ...
49 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: ...
45 views

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

This is an example from the documentation for Button : ...
81 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 ...
33 views

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

I define a bivariate distribution: ...
113 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 ...
79 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: ...
32 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 ...
39 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 ...
32 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 ...
92 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 ...
179 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, ...
69 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: ...
20 views

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

the codes are: ...