4
votes
4answers
152 views

Express block matrix in terms of matrix basis

I'm trying to construct a function that returns the multiplication table of a matrix Lie algebra. Assuming a basis of matrices, my definitions: ...
1
vote
3answers
149 views

How to do a Check for every element in the list?

I know how to do a Check for the list in general: ...
3
votes
3answers
170 views

How can I stop Mathematica from omitting Axes on a Plot?

I'm trying to plot something using Plot[], and Mathematica keeps leaving off one of the axes. I can set Axes->{True,True}, ...
0
votes
1answer
72 views

How to “de rationalize” a number? [closed]

How can 1/2 be represented as 0.5? Thanks!
0
votes
2answers
52 views

Different behaviour of Map and Inner in replace rules

Why does x[{1, 2}] /. {x[l_] -> Map[func, l]} {1, 2} not behave as expected, while for example ...
1
vote
5answers
165 views

How to split list to strings?

Considering a list: lst = {"1", "2", "3", "4", "5", "6"} How can I have two strings : str1 = "1, 2, 3" str2 = "4, 5, 6" ...
2
votes
1answer
70 views

`ResamplingMethod -> None` in `TimeSeries` does NOT take any effect in v10.1

Possible bug in v10.1 ResamplingMethod -> None in TimeSeries does NOT take any effect in v10.1. Try: ...
0
votes
1answer
150 views

Add elements of one list to sublists of another list [duplicate]

I have the following list of sublists with different lengths {{1,1,1},{2,2},{3,3,3,3}} and a second list {4,5,6}with the same ...
5
votes
1answer
78 views

Is there a way to Collect[] for more than one symbol in Mathematica 10.0?

This question has already been asked three years ago (Is there a way to Collect[] for more than one symbol?) but I'm not allowed to comment since I'm new at Mathematica StackExchange. The first ...
6
votes
2answers
439 views

Efficient way to perform local Otsu thresholding on image

I have images of cell nuclei that have locally varying intensity distributions. Therefore, I need a robust local threshold algorithm. LocalAdaptiveBinarize works ...
25
votes
3answers
452 views

Bug in MovingMap (breaking change between version 10.1 and 10.0.2)?

The MovingMap window spec has been changed between version 10.1 and 10.0.2. Version 10.0.2 ...
1
vote
2answers
371 views

How to generate a random, relatively prime number to p?

I'm sorry if this is an obvious question, but I'm a newbie and googling didn't help me much. Is there a way in Mathematica to generate a number q coprime with ...
1
vote
1answer
84 views

calculate variance of conditional sum of Normals

Let $\quad W \sim N(\mu_0, \sigma_0^2), \quad X_1 \sim N(\mu_1, \sigma_1^2), \quad X_2 \sim N(\mu_2, \sigma_2^2)$ denote independent random variables, and let $c$ denote a constant. I want to find ...
0
votes
1answer
104 views

3D scatter plot with labels [closed]

I am doing 3-D scatter plot with labels and using the following code ...
5
votes
2answers
124 views

Combining memoization and SlotSequence

I found myself writing memoizing code like this: ...
4
votes
3answers
361 views

How do I plot a filled cylinder in 3D?

All, I'm trying to plot a filled cylinder in 3D using Graphics3D and then take 2D slices of said cylinder. I know that Cylinder is officially 'filled', but the 2D ...
0
votes
2answers
122 views

Help in evidencing a region (circular) of a .tiff image and cropping all the rest of the image

I'm asking for the community help since I have problems in cropping an image. I'm having LEED images which are 576*720p, which are made by a big black region at which middle I have the image I'm ...
0
votes
0answers
28 views

How to use ScheduleTask in a dynamic module? [duplicate]

I have a little timer widget that times two separate tasks: It is simple enough, but I can't see why it's not working. Am I not understanding the connection between ScheduleTasks and Dynamics? ...
4
votes
0answers
70 views

What is the purpose of Refresh? [duplicate]

I never quite understood the point of Refresh. Why would I do this: Dynamic[Refresh[DateString[], UpdateInterval -> 1]] when it is the same as ...
9
votes
1answer
260 views

Why don't products of Dirac deltas integrate correctly?

Bug introduced in 10.0.0 and fixed in 10.0.1 The integral $\int \int \ \delta(x) \delta(y) \ dx dy=1$ evaluates to 0 in Mathematica ...
12
votes
1answer
145 views

How can I easily visualize density plots with singularities with the least loss of detail?

I'm trying to visualize electric fields. StreamPlot is helpful: ...
1
vote
4answers
131 views

Mean duration between two specific data points

I have dataset such as: ...
0
votes
0answers
40 views

How can I export a notebook into multimarkdown?

Mulitmarkdown (.md filetype) is a very nice document format that supports rendering mathematical expressions like latex or mathml, rendering syntax highlighted code blocks for any language, as well as ...
3
votes
4answers
126 views

How to combine selected out cells into a list? [closed]

I have a loop that was printing out results, and now I'm left with many cells in different sections and I need to combine them (the values in them) into a list I can work with. For example, applied to ...
3
votes
2answers
76 views

Two bit strings represented as lists – how to color differing bits as red while printing?

Assume the following code generatedMsg = {1, 0, 0, 0, 1, 1, 0}; transmittedMsg = {1, 1, 0, 0, 1, 0, 0}; Now, I want to print out something along these lines: $$ ...
1
vote
1answer
581 views

How to plot the graph of the equation F[x,y]=0 if y is real number, x is complex? [closed]

I have an equation F(x,y;a,b,c,...)=0, where x and y are variables, a,b,c,... - parameters. y is a real number, x - complex. For every given y I need to solve this equation, i.e. to find Im(x) and ...
0
votes
0answers
20 views

How to monitor parallel mapping a function over a list? [duplicate]

For instance, how to monitor the progress of ParallelMap[function, list]?
12
votes
3answers
299 views

Is there any faster implementation of DominantColors?

The function DominantColors is a simple function but runs incredibly slow when the number n of dominant colors to find is large - it is currently the biggest bottleneck in my code: ...
2
votes
0answers
50 views

How do I print multiple slides per page?

I have a Mathematica 10 presentation (not made by me). The slides are very short and very many. I'd like to print it, but printing 100+ pages each with 2 or 3 equations seems like a waste to me. Is ...
2
votes
0answers
72 views

Why are the labels twitching vertically in TimelinePlot?

Why are labels jumping up and down here: ...
0
votes
1answer
136 views

Unable to Solve (for arclength parametrization)

I am having trouble with Mathematica while trying to re-parametrize a curve with respect to its arclength. I need to get the old parameter s written in terms of arclength a so the code is ...
2
votes
2answers
211 views

Filling graph between lines and plots

I would like to create a filling delineated by the plots and lines as specified below: ...
0
votes
1answer
111 views

Suppressing tiny imaginary parts in complex numbers [closed]

How do I extract the real part of a substitution expression from FindRoot or Solve? Or alternately, how do I insist that they ...
5
votes
2answers
231 views

Create a list of rules built from data set fields

I want to convert a dataset to a list of features and a list of target values, for use in Predict and also more generally. I know ...
1
vote
1answer
126 views

Solving equations bounded by a region

Straight to the point I have a function ...
1
vote
1answer
90 views

How can I get symbolic orthonormal eigenvectors for 3 by 3 hermitian matrix?

Using the following syntax, I can obtain the symbolic eigenvalues and eigenvectors of the following Hermitian matrix (a,b,c,d are all real parameters): ...
0
votes
1answer
37 views

Strange behaviour of Append [closed]

I have the following situation and I completely do not understand why the second system can be solved but the first (of the same equations, as it seems) cannot. How is it possible? ...
1
vote
1answer
44 views

How can I give each section a unique <a> tag when I Export as XHTML?

Exporting a notebook as XHTML allows me to override the default HTML tags that are written for section-header-like cells. For example, a notebook cell whose type is "Section", containing text "The ...
0
votes
4answers
140 views

Make a program that does union of two lists

I have to make a program that gives as a result the union of two lists using a For loop. I can't figure out how to inspect if the elements of a list are different. ...
0
votes
0answers
44 views

Bincounting multiple data

I have 5number of single column data files and I imported all of them using data = Table[Import["hist501" <> ToString[i] <> ".txt", "List"], {i, 5}]. Now I want to determine the bincount of ...
3
votes
0answers
172 views

Is there a way to profile Mathematica code in batch mode?

I'd like to profile some Mathematica code to figure out why it's running slowly. Since the code takes about a day to run, I can't use the Wolfram Workbench GUI. Is there a way to run Wolfram Workbench ...
0
votes
1answer
79 views

Mathematica: issues storing nested list on disk

having trouble with mathematica using nested lists. I want to save a list like this: l1={{a1,{a,b,c,d,e}},{a2,{f,g,h,i}}} So, the nested components do not have ...
1
vote
1answer
110 views

Bug with DateListPlot with ToolTip with NumberForm?

Is anyone able to confirm if this is a bug in version 10.1 on Windows 7 Pro? I am attempting to produce a DateListPlot with ...
1
vote
1answer
68 views

Simple pick up an element from above line [duplicate]

( Did not readily find from Documentation even if used before). NSolve[ 2 x^3 + x ^2 - 5 x + 2 == 0, x] How to collect roots with new labels a,b and c?
1
vote
0answers
58 views

Subscripts in variable names: Bug?

In the following plot, one of the two functions {-par, par} defined by ...
13
votes
1answer
207 views

MinMax function (Mathematica v10.1.0) conflicts with NDSolve`FEM`MinMax?

Bug introduced in 10.1.0 and fixed in 10.2.0 Some problem in v10.1.0 (Windows 8.1 x64) and the new MinMax... ...
5
votes
1answer
150 views

Does RunProcess work on Chinese Windows?

I am asking for feedback from people running Mathematica 10.0.x or 10.1.0 on Chinese versions of Windows. Does the following command work or does it give $Failed? ...
1
vote
3answers
129 views

Many NSolves to interpolating function

I have an expression of the form: expr = TerribleNumericalFunction[U[p]] == SimpleFunction[p] The Simple function is a ...
1
vote
1answer
107 views

Changed appearance of Quantity expressions in v10.1.0

After installing Mathematica v10.1.0 (in Windows 8.1 x64), I noticed a change in appearance of Quantity expressions. For example under Mathematica v10.1.0: while ...
2
votes
0answers
125 views

Simplifying symbolic multiple sums

suppose I have a multiple sum with an unspecified number of indexes: $$\sum_{i_1=1}^n \ldots \sum_{i_k=1}^n x_{i_1}\otimes\ldots\otimes \hat{x_{i_j}}\otimes\ldots\otimes x_{i_k}$$ with $x_{i_j}$ ...

15 30 50 per page