1
vote
1answer
185 views

Missing arrow tips and colors

My main problem is: I plotted a curve here, but the tip of some arrows are missing. Why does this happen, and how can I fix this? Not the main problem: Also, I once tried to make the arrows with ...
7
votes
2answers
398 views

Is it possible to produce “tilt-shift” effect in Mathematica?

I attempted to produce a kind of miniature faking look from a street scene photo. I tried to shift the perspective lines close to parallel to each other to obtain such effect. However, the result ...
5
votes
2answers
211 views

How to lookup by a string key after GroupBy? Inconsistent data type handling

This is relates to a bug that was introduced in 10.0.0 and fixed in 10.0.1 It also relates to an issue that has yet to be corrected. After applying GroupBy to ...
4
votes
2answers
88 views

Rational display with Quantity

Why is that Power[Quantity["ElectricConstant"],-1] is represent different of Power[Pi,-1] What I am doing wrong ?
0
votes
1answer
117 views

Unusual Slow Down with LocatorPane/DynamicModule

I have coded up a little interactive DynamicModule to help me with image processing/segmentation of stacks of timelapse microscopy images. I am experiencing a crippling slow down in the ...
4
votes
1answer
436 views

Fredholm integral equation of the second kind with kernel containing Bessel and Struve functions

I need to solve this Fredholm integral equation of the second kind: f[s]+integrate[f[t] K[s,t],{t,0,1}]=s where ...
1
vote
0answers
152 views

Compiler stack overflow [closed]

I tried to compile a huge function. I used these options: ...
7
votes
2answers
216 views

Replace Missing[Unmatched] with zero

After a left JoinAcross, I have a number of Missing["Unmatched"] values in my list of associations. I'd like to set them all ...
5
votes
1answer
136 views

Grid rows height & SpanFromAbove issue

I would like to understand why the following code produces such a different result (Mathematica 9, Win7). Is this a bug? Is there a way to avoid this line height problem? ...
11
votes
5answers
633 views

What is my problem with MeshFunction?

I want plot the max value in a sine plot. We can use the following code ...
6
votes
1answer
310 views

Citation of the algorithms used in FindGraphCommunities

For my research work I need to put a comparison of different community detection algorithms. Instead of implementing all those algorithms once again, I would like to use the methods already provided ...
2
votes
0answers
100 views

An efficient way to merge a pair of 4d arrays of non regular length lists

Question I have two 4 dimensional non regular length lists of complex values. I have working code however it seems quite slow and I am not sure how I could improve this. Mathematically I am trying ...
14
votes
1answer
1k views

Blurred frontend text in Mathematica 10, Windows, High-DPI Display

So I have recently upgraded to a Windows ultrabook with a high resolution display. All my software seems to cope just fine with the high resolution, except for Mathematica 10. Mathematica seems to ...
4
votes
2answers
334 views

Selectively updating individual graphics in a dynamic, multiple-plot Show

Suppose Show contains multiple graphics objects that differ markedly in the amount of computation needed for their display. Hence, when dynamically updating only ...
4
votes
0answers
54 views

Is it possible to pass a “shared” integer in librarylink?

MTensor supports shared pass, where the argument can be modified in the library function and that modification can be seen in Mathematica side. Is it possible to do the same thing to a integer or ...
1
vote
1answer
159 views

Locators, lists of variable length, all in Manipulate

I'm trying to implement a complicated Manipulate[] interface. I'm not really interested in working code, but for those interested, I would like the program to allow you to drag around a variable ...
6
votes
0answers
80 views

Listable compiled functions used in NMinimize [duplicate]

This is an example from MMA: cListable = Compile[{x}, (x-1)^2, RuntimeAttributes -> {Listable}] In case of single entry: ...
7
votes
1answer
401 views

Exporting a compiled function for later use

I wish to export compiled functions for later use. This means that I do not want the compiled function to be recompiled every time I reload it. It also means that if my compiled function was for ...
5
votes
3answers
277 views

difficulty abstracting the OptionValue pattern

I am building lots of functions that use Options and OptionValue and wanted to reduce the redundancy in the expressions that ...
7
votes
5answers
573 views

Find patterns in a list

again, I have a list like this: ...
4
votes
1answer
138 views

Bad numerical approximations

I'm trying to do some calculations here, but for some reason Mathematica starts using numerical approximations that are no good for my work. Specifically: ...
13
votes
0answers
131 views

Proper EdgeForm setting so boundary appears entirely within shape

I have two neighboring (complicated) polygons that I want to be displayed with thick boundaries, however the two shapes border one another, and as EdgeForm places the line centered upon the polygon's ...
3
votes
1answer
203 views

FindFit with parameters which are simultaneously in initial conditions

I have RLC circuit. I would like to find R and L by using FindFit, but L is in initial condition and I have problem with it. Could you help me ? ...
1
vote
1answer
137 views

How to factorise a variable out of an indefinite sum?

(I should start by saying I'm a total beginner with Mathematica, so if the answer needs code I'll need it spelled out quite clearly, the learning curve for this is proving steep!) Basically what I am ...
5
votes
3answers
683 views

Creating Correlation Table (and Working) With Missing Data

I am working with data that contains missing values (I have several variables (across the columns) and several observations (across the rows) in an excel spreadsheet). Example of the data structure: ...
4
votes
0answers
152 views

Bandpassing EEG's using Mathematica's Bandpass Function

Let's say we have an EEG signal approximated using a fractional Brownian motion: ...
2
votes
2answers
129 views

Plot help with axes coordinates

Plot[{4 - 2 y, (5 + y)/3}, {y, 1, 10}] How do I make Mathematica tell me the coordinates for cuts with the y-axis, other than just looking at it?
3
votes
1answer
320 views

Table with dynamic iterator

I would like to make a Table whose iterator has a dynamically updated endpoint, i.e. Table[i,{i,1,Dynamic[n]}] Is this possible? Here is the context: ...
11
votes
3answers
122 views

How to limit number of user-defined messages issued per evaluation

I have written code such that if it runs into a particular function, a warning message is issued. However, it is common for the program to call this function several times in a single evaluation, but ...
3
votes
1answer
99 views

Use Style on list elements

I have a list like this: list = {0, 0, 0, 1, 1, 1} I want to color all the 0's in red, but I dont want to count through all the elements, like in my solutions, ...
3
votes
1answer
69 views

How to pick out terms in a linear equation with a positive coefficient?

Basically I have a really large output which looks like a long linear equation $AAA-BAA-CAA+DAA+...-ZZZ$ And I only am concerned about those terms that have a positive coefficient (i.e. a plus in ...
10
votes
2answers
390 views

When must I use the Return function?

In a comment to my answer to this question, QuantumDot asks, "Where can I find more information on when I must use the 'Return' function?". I found this too deep a question to be answered by leaving a ...
3
votes
1answer
118 views

What is the order of execution of Animate?

I used to think the execution order of Animate is the same as For until I find: ...
6
votes
1answer
374 views

How to combine Plot and GeoGraphics?

I want to combine this map as "background" of this combined plot. How can I do it? The documentation doesn't show any similar demonstration. ...
7
votes
4answers
471 views

Change appearance of ConvexHullMesh

I'm struggling to understand the behaviour of ConvexHullMesh (or rather the non-behaviour). I have a polynom p ...
4
votes
2answers
394 views

Adding a thick curve to a regionplot

Suppose we have the following simple RegionPlot: ...
0
votes
0answers
121 views

How do I set up conditions at infinity?

I having trouble with this equation: $$ -\frac{(2 m \text{U0}) \Psi (\rho ,z) \left(1-e^{-\text{} \left(\frac{z}{d}\right)^2-\left(\frac{2 \rho -(r+R)}{R-r}\right)^2}\right)}{h^2}+\frac{\partial ...
6
votes
2answers
222 views

How to get rid of the blank areas around alphabetical images?

I attempt to test the mean graylevels of the alphabets "W" and "Z". I used the following code to create the images of them. ...
8
votes
3answers
347 views

Is there a relatively quick way to solve my integer-valued equation?

This is a very simple problem. It can be solved by nested Forloops that exhaustively test every possible case, throwing out all non-solutions. Find all the ...
4
votes
1answer
701 views

How to find the integer solution number of a linear system with inequalities?

I have the following system with mixed equality and inequalities defined as: ...
6
votes
3answers
898 views

How to get the mean color of an artwork?

I got a piece of artwork in dimension of 20x20 pixels. I attempted to divide it into a 5x5 array of elements each of a smaller size of 4x4 pixels, and would like to find the mean color of the ...
3
votes
1answer
215 views

How to combine objects from different .obj files?

I got a screw .obj model with the head diameter of 2cm, and a board .obj model of 10cmx10cmx4cm in dimension. I would like the ...
5
votes
1answer
192 views

Tools for Importing/working with SEED seismographic data in Mathematica?

Do you know if exist a library or a package in order to import and work with SEED Seismographic data in Mathematica?
5
votes
3answers
164 views

Prevent iterator name from being confused with symbol passed into function body

I have a massive amount of code with lots of Table and Sum inside a Module. Each with their ...
5
votes
1answer
224 views

Mathematica 10 crashes when kernel is quit from MenuItem

I'm actively developing a large codebase that I load every time I use Mathematica. I frequently quit my kernel and reload the codebase to incorporate new changes. I've created a custom menu by editing ...
1
vote
1answer
159 views

Under what conditions does Mathematica give a natural antiderivative when integrating?

Natural antiderivative is defined as follows, using Fourier transform: $$f^{(-1)}(x)=\frac{i}{2\pi}\int_{-\infty}^{+\infty} \frac{e^{- i \omega x}}{\omega} \int_{-\infty}^{+\infty}f(t)e^{i\omega t}dt ...
10
votes
4answers
428 views

What is the correct way to use specific rule for specific pattern match when parsing an expression?

update: Thanks for the answers below. But I noticed they do not handle the following special cases: lis=1 and lis=z , ...
2
votes
0answers
197 views

Error when using EquationTrekker

I just got to know EquationTrakker because I need to do phase graphs for my classes. When I load it ...
9
votes
2answers
250 views

Keep Mathematica from simplifying functions with a specified Head

I want to run Simplify and/or Refine on various expressions, but keep it from touching anything that contains a specific ...
4
votes
1answer
169 views

Optimizing a function containing a complex exponential

I've noticed the following significant different in performance for different formulations of the same function: ...

15 30 50 per page