3
votes
0answers
262 views

Distance Time Warp (DTW) function implementation in mathematica

The DTW (Distance time warp) is given here http://en.wikipedia.org/wiki/Dynamic_time_warping There is an implementation of DTW in R as well as MATLAB. However i am unable to find something for DTW in ...
2
votes
0answers
100 views

Understanding the order of applying Rule to expression [closed]

I am a little confused about: In what order is a Rule tried to apply to an expression? In a depth-first order or otherwise? For example, ...
5
votes
1answer
113 views

RawArray crashes the kernel

fixed in 10.0.2 RawArray seems to crash the kernel on my machine RawArray["Byte", {}] Is this a bug? Any insights why this happens? My system: version 10.01 ...
1
vote
2answers
90 views

Assigning to the “local” version of a symbol

Compare Manipulate[c[1] = 1; c[1], {c[1], 0, 1}] with Manipulate[Do[c[i] = 1, {i, 1}]; c[1], {c[1], 0, 1}] The first case ...
21
votes
1answer
430 views

Why some built-in functions are slow

I just wonder why some built-in functions are slower compared to some other ways using more than one built-in functions for doing same job. consider this example: ...
8
votes
1answer
228 views

how to speedup subpixel registration

I have a bunch of small images that I need to register with larger images with sub-pixel resolution (ie. based on image interpolation ) This works.. seeking advice to improve performance. Create a ...
2
votes
3answers
144 views

Solving a differential equation with NDSolve and plotting it WITH the use of Manipulate

I want to solve, let's say, this differential equation: y'[x]=y[x]^n Given any initial condition (which I might want to manipulate too). I want to plot the ...
4
votes
2answers
262 views

Manipulate in Manipulate

Question 63982 (Altering values in Manipulate with dynamically generated controls) got a very interesting answer from @belisarius, in which he used a Manipulate ...
2
votes
0answers
78 views

Spread multiple edges by a specified scaled distance (Mathematica 10)

Is there way to spread multiple edges by a specified scaled distance for Graph function in Mathematica 10, something similar to MultiedgeStyle in GraphPlot for example, I would like to write: ...
1
vote
2answers
93 views

Number of sequences with a certain condition

Suppose I have the sequence {2, 4, 6, 8, 10, 12, 14, 16}. How could I calculate the number of tuples so that for every term save the first one, the difference from ...
1
vote
1answer
73 views

Disabling Mathematica's automatic sort of output

I used Mathematica to greatly simplify an algebraic expression. I now want to copy it into some notes, but it by defaults things in a very non-intuitive manner. I have a sorting function that will ...
1
vote
1answer
84 views

How to rearrange CharacteristicPolynomial[ ] terms?

I have a symbolic matrix A, which I need to find the characteristic polynomial, then order the polynomial in greatest-to-least form. (Ultimately to find the matrix inversion via Cayley-Hamilton method)...
0
votes
1answer
165 views

Manipulate Solve for initial condition

I have a series of $n$ coefficients with parameters $r$ and $b$ that sum up to one. But there i also the initial condition value $c1$ that i required to obtain this normalization. I want to find this $...
13
votes
6answers
2k views

Selecting every n-th element from a list

I have a list: data = {4, 5, 7, 8, 9, 5, 3, 2, 1, 2, 13, 12}; I want to take those elements in the list which are located at equal distances, say, every third ...
3
votes
2answers
110 views

MapThread problem

I would like to do the following: ...
1
vote
2answers
197 views

What is the correct syntax for using a radio button to set values to be used elsewhere? (restated)

Here is my question, restated - I want to be able to choose the values for a complicated function from a set of alternatives values that I have gathered. The function requires several input values, ...
4
votes
1answer
689 views

How do I remove single-character whitespace between words, leaving multiple, contiguous, whitespace characters unchanged?

In a string, I want to remove only the single-character whitespace between printing characters, leaving any multiple, contiguous, whitespace characters between printing characters unchanged? What is ...
4
votes
3answers
372 views

Extracting columns from multidimensional list

Perhaps a very easy question but I posted this on the Wolfram Community and didn't get any answer.. Suppose I have data like: ...
6
votes
1answer
235 views

HDF5 and complex numbers

I "Export" an array with complex numbers with HDF5 format. When I "Import" it, I only get the real part. Simple example: ...
4
votes
3answers
337 views

Altering values in Manipulate with dynamically generated controls

I have a Manipulate whose controls are generated based on a parameter in a containing Manipulate: ...
1
vote
1answer
464 views

Copy/Pasting code that contains double quotation marks leads to broken code [duplicate]

Sometimes, when copy/pasting code that contains a string (double-quotes around it), the copy of the code fails to evaluate. For example, the original code ...
0
votes
0answers
42 views

Closed solutions for `FindRoot`, no solutions for `Reduce` or `Solve` [duplicate]

Reduce, Solve and FindRoot all appear to struggle with this: ...
3
votes
1answer
157 views

Programming for matrix manipulation

I want to write a programme which operates on nd x nd matrices. The programme looks the matrix as a n x n block matrix where ...
2
votes
1answer
179 views

A possible bug with regard to DateObjects in Version 10?

Bug introduced in 10.0 and fixed in 10.1 Bug related to the Suggestion Bar Bug While getting used to the new data type Date Object in Version 10 I noted that ...
5
votes
1answer
271 views

How can we get this infinite prism lattice to look more like `PolyhedronData[{“Prism”, 3}]`?

This is D$_3$h prism with order 12 (8 currently, needs 4 more edges) and rotational symmetry D$_3$ with order 6. A d=11 version is shown here. Using this code: ...
6
votes
2answers
338 views

BarcodeRecognize can read Chinese,but why BarcodeImage can't make Chinese characters to QR image?

For example: Import["http://www.image-share.com/upload/2735/230.jpg"] BarcodeRecognize@% can give a String "别看我,我会害羞..." but if I go on using ...
2
votes
2answers
330 views

graph of the Cantor set in Mathematica

The interval [0,1] of the real line, which we call C0, and divide it into three equal subintervals. In this way we obtain the following intervals [0,1/3],[1/3,2/3], [2/3,1] and we interval rid [1/3,2/...
5
votes
2answers
437 views

Draw a partial line in Animate

I have a list of points that my line must go through, all at varying distances from one another. I'd like to draw just a piece of this line in an Animate, where the various segments are traversed at ...
1
vote
3answers
100 views

Iterations with Table?

Is the following code efficient? Has it any advantages? s[0] = Sqrt[2]; Table[s[t + 1] = s[t]^2, {t, 0, 4}] {2, 4, 16, 256, 65536} Should be efficient in the ...
2
votes
2answers
202 views

Returning the 3-dimensional vector from a skew symmetric matrix

I'm trying to write a function that takes in a skew symmetric matrix and returns the corresponding vector. When I write the following code, it works when I leave it as variables, but it does not work ...
6
votes
2answers
80 views

Nested list of patterns in SyntaxInformation “ArgumentsPattern”

I have a function with the following input structure: f[{{a1, n1}, {a2, n2}...}, {i1, i2,...}] The first argument is a List ...
1
vote
0answers
47 views

Why does integration of a radical times HeavisideTheta give a conditional expression?

If I want to compute an integral over x^p HeavisideTheta[y-x] where p is some fraction, I do not get the desired result, but ...
5
votes
1answer
454 views

How to combine solid objects using logical expressions?

How can one define and render in 3D a single solid object using logical operations on component solid objects? For instance, I would like to define a solid object that consists of a ...
0
votes
1answer
98 views

Display problem multiplying matrix [duplicate]

I'm multiplying matrices and I don't get answer I want I just get matrix M times matrix N, there is no result. What to do and ...
10
votes
5answers
394 views

Make a series of points curl

Say I have a series of points that make a straight line... (Fig 1) points = {{0, 0, 0}, {1, 0, 0}, {2, 0, 0}, {3, 0, 0}, {4, 0, 0}, {5, 0, 0}} I can rotate these ...
2
votes
0answers
199 views

SymmetrizedArray of stiffness/compliance tensor

The stiffness and compliance tensors of a material are 3x3x3x3 tensors relating stress and strain. ...
9
votes
1answer
315 views

Accessing an API (made in the Wolfram Cloud) using a standalone application

I created an API function that given an integer, would return the factors of that integer. ...
9
votes
2answers
402 views

Artefacts in 3d plots

I am trying to plot a simple function ...
1
vote
0answers
129 views

Using NMinimize to solve the Multi Commodity Flow problem

I have the following optimization problem and I was hoping to solve it with NMinimize. Unfortunately, I don't get the desired result. I would like to get an optimal vector for $d_{e}$. This is how ...
4
votes
2answers
150 views

Can't figure out how to apply these functions repeatedly

I have the following problem, and even though I've tried Fold & Inner, Sow & Reap, et al. I can't figure out the clean way to do this. Here's the problem. I have a list that starts as ...
6
votes
2answers
266 views

Limit not giving expected result

I am taking the limit Limit[Sin[π Sqrt[4 n^2 + n]], n -> ∞] the returned answer is Interval[{-1, 1}] I think the right ...
6
votes
2answers
152 views

Is this an error/bug with Plot Command? [duplicate]

I've tried doing: Plot[x^(2/3), {x, -10, 10}] and I get Which is wrong, since the cubic root can receive negative numbers. Also when I plot something ...
4
votes
2answers
206 views

how to find numerical zeros of $f(z)$ in a compact complex domain

I encountered a function $f(z)$ with several zeros in a region $1<\Re(z)<2, 3<\Im(z)<4$. These zeros are visible in a three dimensional plot like ...
3
votes
2answers
67 views

Fast functional method for multiplying duplication numbers in a large list

Consider a list of symbols: mySet = {a, b, b, c, a, b, c, d}; I would like to form the product of duplication numbers. In the example above, I have 2 ...
1
vote
1answer
56 views

How do I solve a profile interval (statistics)

I want to calculate a 95% profile interval for f0. Do worry too much if you do not understand what it is. I will illustrate with a simple example. ...
0
votes
1answer
47 views

Simplifying a fraction with bringing in new variables

Let's say I have a fraction like this: (a b x^2 + a^3 x) / (a^2 b x) and I would like to simplify it by multiplying both the numerator and the denominator with <...
0
votes
2answers
88 views

Plot function the uses Solve

Can someone tell me why I get an error (and how I get around it) from Solve while I try to Plot a function like: ...
6
votes
1answer
283 views

How to find out the current memory on the JVM?

I want to find out the amount of memory available in the Java Virutal Machine. I tried: ...
15
votes
2answers
587 views

Intersecting parabolas in an image

I have a friend who is a math teacher (like me) and while out cycling took this picture. The idea would be to create the equations of the quadratics that model the bridges and super-impose them on ...

15 30 50 per page