15
votes
2answers
465 views

What is the right place for user-defined init.m?

What is the right folder to put a file init.m which will be run after all other init.m files applied by the various components of Mathematica have done their job? ...
6
votes
1answer
70 views

How does Context work? [duplicate]

I thought when we type a symbol without specifying its Context, it will search all the Context in ...
9
votes
6answers
309 views

Coloring an image with two Color schemes based on a Range

I would like to color an image generated from some data, using two color schemes based on two ranges of the data. This is my attempt: ...
1
vote
1answer
108 views
0
votes
1answer
54 views

Nested parameter selecting in Manipulate

I have the following code, stripped down from the original to the bare essentials: ...
-1
votes
3answers
62 views

How to use SwatchLegend in Show? [on hold]

Let us suppose i have two graphs for sequences A and B as follows ...
2
votes
2answers
45 views

How to transform the $y$ values in a list of $(x,y)$ pairs [duplicate]

How can I transform data = {{1, 0}, {0, 1}, {1, 1}} to {{1, f[0]}, {0, f[1]}, {1, f[1]}} This is similar to ...
0
votes
0answers
20 views

How to resolve this issue related to Conjugate? [on hold]

When I perform the vector multiplication given below FullSimplify[{a,b}.Conjugate[{a,b}]] I am getting the result as I expect ...
0
votes
0answers
37 views

What are the differences between Clear, Remove, ClearAll, Unset and TagUnset, when to use which? [on hold]

What are the influences of these operations on things like UpValues, DownValues, OwnValues and whether the kernel knows the symbol? When do I use which? I know ...
-3
votes
0answers
60 views

Quaternary drawing [on hold]

I have these data and I want to draw such figure in mathematica. any one can help me? my data: ...
3
votes
3answers
114 views
0
votes
0answers
34 views

ParametricPlot3D step size

I tried to use ParametricPlot3D which appears in the kernel, such as; ParametricPlot3D[{xALL, yALL, zALL}, {ξ, 0, 5}, {η, 0, 3}]; but here parameter's step size ...
0
votes
1answer
28 views

How to pair elements of a nestlist? [duplicate]

I have a this list for example expdata={{49, 50, 51, 52, 53, 54},{0,3,5,2,0,1}} and I want to rearrange it like this ...
3
votes
1answer
163 views

Quick way to generate the Shepp-Logan phantom

I have some very old code for generating a Shepp-Logan phantom: ...
6
votes
5answers
523 views

another way to do this mapping of a two argument function

Sorry, I'm just starting to learn mathematica. I have the following two-argument function: h[{x_, y_}] := x ^ y When I do the following: ...
-1
votes
0answers
26 views

SparseArray Band with Array [on hold]

Probably a very simple problem : Why do I get z^2 and not z, and in the other case it works with a number ? Thanks, Edit: Copyable Code ...
2
votes
2answers
56 views
4
votes
0answers
49 views

Pre-processing and deconvolution of CLSM images

I have some confocal laser scanning microscopy data sets that I want to binarize for further analyses. Due to the fast bleaching dyes and the general scanning duration we established a setup which ...
77
votes
2answers
16k views

Is there an open source implementation of Mathematica-the-language?

I've seen questions before such as "What is the best open-source equivalent for Mathematica?", but that specific question (and that line of inquiry in general) cares more about the computer algebra ...
2
votes
0answers
33 views

How to deal with tensor argument in LibraryLink?

For the Bézier surface, which owns the following matrix definition: $$\begin{align*} \mathbf{S}(u,v)&=\sum_{i=0}^m \sum_{j=0}^n \mathbf{P}_{i,j} B_{i,m}(u) B_{j,n}(v)\\ &=\small \begin{...
5
votes
2answers
118 views
+50

Why isn't LowPassFilter working for these parameters?

First I define a function, just a sum of a few sin waves at different angular frequencies: ...
2
votes
1answer
86 views

Python Convolve2D functionality in Mathematica

I am new to mathematica. I am looking for an alternative for scipy.signal.convolve2d. I did find functions like ListConvolve, ...
0
votes
0answers
56 views

Henon Map Equation Trekker

I am trying to make an Equation Trekker for the Henon map in the following way: ...
0
votes
0answers
38 views

Expectation of summation with symbolic indices

I am working on symbolic computations with mathematica. I faced an issue with taking expectation of a large expression involving summations with symbolic indices. Is it possible to take expectation ...
0
votes
0answers
7 views

Any theorem which specifies the state (with energy $E$) with maximum entanglement [migrated]

Does there exist any theorem in quantum information which states that the particular state with energy $E$ is the state with maximum entanglement (or discord) among all possible state with the same ...
0
votes
0answers
32 views

What does it mean that “there are no significant digits to display”?

So I substitued with the following values in my function T(x,n) and it gave me this red box with the value in the picture. When I hover over it, it tells me that there are no significant digits to ...
1
vote
1answer
65 views

Defined a function but it doesn't seem to work

I'm trying to implement the line-crossing algorithm on Mathematica and I seem to be having trouble getting it to work. More specifically, I would like to know what is causing the function to not ...
3
votes
1answer
34 views

License issue when USB-LAN stick is connected. [on hold]

I have mathematica installed on my laptop which only have a wifi card. When I connect a USB-LAN adapter, even if it is not connected to the LAN socket, mathematica complains that the license is ...
1
vote
1answer
40 views

Where can I see a full list of Classify[“FacebookTopic”] results?

I can see that Classify function has some built in classifiers, like "FacebookTopic". For example, if I type "Should I take an ...
0
votes
0answers
23 views

PlotRange -> All for Show [duplicate]

I want to fit a gaussian function to a data below: ...
34
votes
4answers
5k views

Fastest way to calculate matrix of pairwise distances

It is a very common problem that given a distance function $d(p_1,p_2)$ and a set of points pts, we need to construct a matrix ...
20
votes
7answers
2k views

Find intersection of pairs of straight lines

I have a list of 24 points, in which two consecutive points (1st and 2nd, 3rd and 4th, …) are supposed to form a line: ...
0
votes
0answers
54 views

Complex Analysis with MATHEMATICA [on hold]

I am interested in chapter 21 of the book: Complex Analysis with MATHEMATICA by William T. Shaw. chapter 21 - Conformal mapping II: the Schwarz—Christoffel mapping pp. 451-472 I'm not able to get ...
2
votes
1answer
104 views

Complicated implicit plotting

I'm quite new to Mathematica and have already spent tons of time on problems of this type, browsing through tutorials and topics here. I'm now coming to conclusion that it cannot be done and am about ...
1
vote
1answer
28 views

Converting a list of lists of indices into a sparse matrix of ones and zeros

I have data formatted like {{a,b},{c,d},{e,f}} where each entry is an integer. I need to turn this in to a sparse array with entries ...
-1
votes
1answer
29 views

Proof The union of an infinitely countable set and an element is countable [on hold]

If $A$ is countable infinite set and b $\notin$ $A$, then $A$ $\cup$ {b} is also countable. I thought of starting of saying lets assume $A$ $\cup$ {b} is countable and show that $A$ is a subset of it ...
1
vote
0answers
51 views

Why does DeleteDuplicatesBy fail?

This is a pretty straightforward code. I just want to delete duplicates based on the final entry in each row. I have evaluated very similar numbers with no problem. ...
2
votes
2answers
74 views

How to use NestWhileList with a function of two variables

I want to iterate a function of two variables in NestWhileList. Obviously it will need a termination condition. For example imagine I have this function: ...
0
votes
0answers
94 views

Pointers in Mathematica [on hold]

Does Mathematica entertain Pointers in wolfram? I have a matrix and I want to make function At such that At(MatrixName,row,col) = NewValue I am able to update the ...
1
vote
0answers
56 views

Getting FindRoot::nlnum when trying to find root of an Interpolating function [on hold]

I want to solve a system of differential equations and find a point where the solutions cross. So four steps: 1. Solve the system of differential equations: ...
251
votes
6answers
119k views

How do I draw a pair of buttocks?

I'm trying to develop a function which 3D plot would have a buttocks like shape. Several days of searching the web and a dozen my of own attempts to solve the issue have brought nothing but two ...
2
votes
0answers
65 views

Estimating processing time for commands

I am trying to evaluate some equations by using Taylor series of expansion (Series[], ExpandAll[], and Normal[] command), and using n equation and n unknown (Solve). Following is not full command (if ...
1
vote
3answers
76 views

Evaluating $\int_0^\infty dx /{(x^2-a^2)^2+b^4} $ returns a negative number

I am trying to evaluate $\int_0^\infty dx /((x^2-a^2)^2+b^4)$. And I seem to have an error that I cannot detect. Using ...
3
votes
0answers
40 views

Hide Notebook scrollbars

Is it possible to hide the scrollbars from the notebook windows while still being able to use the mousewheel to scroll? Since I never click on the bars themselves they're just a waste of space. It's ...
8
votes
1answer
433 views

Data extraction from a picture of a graph

How can I extract data from this picture of a graph? i = Import["http://i.stack.imgur.com/Ac8m0.png"]; The caption of the picture reads: " Two-dimensional ...
2
votes
1answer
44 views

Help Compiling Vectors using Iterations

So I have a nice code that runs properly, which I include below but, in my naiveté, I'm having issues iterating my procedure. Simply put, I have a function of two real variables $f(x,y)$ and I want ...
317
votes
30answers
53k views

What are the most common pitfalls awaiting new users?

As you may already know, Mathematica is a wonderful piece of software. However, it has a few characteristics that tend to confuse new (and sometimes not-so-new) users. That can be clearly seen from ...
2
votes
1answer
71 views

Using Associations and Pattern matching in numerical functions possibly broken

It looks like the very young feature of pattern matching (/replacing) within Associations (http://mathematica.stackexchange.com/a/119542/6804), with or without ...

15 30 50 per page