0
votes
0answers
2 views

Finding “Maxima” and “Minima” on a B-Spline

I need to find the "Maxima" and "Minima" on a B-Spline or more correct the points where the 2nd components of derivate equal zero. For example: ...
1
vote
1answer
11 views

How to plot the product of the NDSolve result and any known function

How to plot the product of the NDSolve result, e.g. x[t]/.solution and any known function, for instance, Sin[x]
1
vote
2answers
25 views

How to create a list with subscript?

I have to calculate: How can I create such a collection? Do I have to set it manually(one by one) like G1=1, H1=1, G2=2,H2=.....? UPDATE: Addtional Questions: How can I store te results into ...
0
votes
0answers
31 views
0
votes
0answers
28 views

speeding up a function

I need to marginalize a distribution. I was suggested to use the code in this thread. This works just fine, but the problem is that the construction of tab (please ...
1
vote
2answers
34 views

How to use a particular color in function of value of f[label] in a PieChart?

How to use the value of a funtion[label] to assign color to a piece of the pie? (edited after answer of kguler ) My dude is how to control the colors in ranges of a function of [labels] In this way ...
0
votes
0answers
30 views

About how Mathematica understands the branchcuts of the complex logarithm [Part 3]

One understands that for the function $\log(z^2+a^2)$ Mathematica implicitly puts the branch cuts to be starting at $\pm ia$ and going up/down respectively on the imaginary axis. The phase of this ...
0
votes
0answers
46 views

Mathematica examples with many calculations?

This what I'm trying to do with mathematica: I have to do a lot calculation, and use results from previous calculations to conduct followings. But I only know to use Mathematcia in this way: The ...
1
vote
0answers
32 views

Data filtering using Butterworth filter

I want to filter data using Butterworth filter. I am currently using Matlab and I want to know how to do it in Mathematica. I have the following data: ...
0
votes
0answers
19 views

Plotting a StateResponse inside a loop for some reason gives an error

/edit Nevermind i figured it out, i now have: ...
0
votes
0answers
11 views

double-click to edit stops working on drawing when in text cell vs. output cell

I noticed something strange. Using V 9.01 on windows 7, 64 bit. I make a plot. I want to add notation to it using the drawing tool. To make sure edits are not lost when code is run again, I copy the ...
1
vote
1answer
32 views

Revert y-axis in RegionPlot

I have the following code: ...
0
votes
2answers
46 views

How to generate a list with a loop, and put it into a variable?

I am pretty new to Mathematica and to coding in general. I want to do a very specific thing, but I unable to do it. Please explain in detail how I can make this work. Here's the details on what I am ...
0
votes
0answers
13 views

Correct use of Mathlink's MLGetRealList

I am attempting to use Mathlink from C. I have managed to return single values from mathlink to my c program, but I am having trouble with lists. Consider the Mathematica operation: ...
3
votes
2answers
78 views

Controlling spacing of histograms in Histogram3D

I have five histograms, hist1 = Histogram[data1, 20], to which I append {1, 2, 3, 4, 5} via ...
1
vote
0answers
39 views

FindRoot in range

I am trying to find all roots in a range, using y /. FindRoot[Sin[y] == 0, {y, #}] & /@ Range[7] which gives ...
0
votes
1answer
64 views

How to solve this integral equation?

I am trying to solve for x the integral equation : ...
0
votes
0answers
32 views

TableDirection in TableForm

I got confused about what does "the outermost dimension" and "the first dimension" mean in the document I snipped. Does it mean row or column?
0
votes
0answers
60 views

an NIntegrate inside a manipulate in mathematica was working and suddenly won't work now. it says indeterminent and it doesn't make any sense why

my title says pretty much everything heres what I'm entering. NumericQ returns a false value but it was true before. Im loosing my patience because this is so ...
2
votes
0answers
35 views

How to do assignments through MathLink?

In Mathematica I can make the assignment 'foo = bar' with Set[foo,bar]. However, if I try to evaluate 'Set[foo,bar]' through MathLink then it appears that MathLink gets stuck while trying to read ...
0
votes
0answers
72 views

Issue with Set function

Tables often come with column headers. Indexing the columns with the header is a natural thing to do. Although a proper dictionary is the usual solution in such a case, I find it often practical and ...
0
votes
2answers
54 views

Manipulate executes twice [on hold]

I need help, guys! Here the script: ...
7
votes
2answers
184 views

Select cases from a list

I have a list in the form : {1,1,1,0,-1,-1,1,1,1,0,0,0,0,-1,-1} No I'm trying to select only those sequences which start with 1 have a zero (or many zeros) ...
2
votes
2answers
171 views

How to select the first “lowest” (first valley) number in a list?

I would to select the first valley of the list of coordinates below. It should be {3, 1}. ...
-2
votes
0answers
57 views

Shooting method [on hold]

can someone look at my equations http://imagebin.org/306581 , and tell me how would I simulate it? Any idea would work. I am looking for a start. I have a code in matlab, but its taking vary long, and ...
0
votes
0answers
29 views

“NotebookPredictions” [on hold]

I have deleted Mathematica user folder, as well as reinstalled Mathematica, but I keep getting error message: The front end encountered an error while processing a "NotebookPredictions" packet. What ...
1
vote
2answers
115 views

X-Y scatterplot

Hi I have a simple question. How do I plot the following with Day 1 as my X axis and Day 2 as my Y axis? I need the 22 variances plotted according to the Day they were taken from (these were ...
0
votes
1answer
64 views

Matrix Operation

I have a $3\times3$ matrix A, and a function sTrans that outputs two $3\times3$ matrices in a list when given a $3\times3$ ...
3
votes
1answer
59 views

Little triangles appearing in a Mathematica region plot saved in a PDF file [duplicate]

I am trying to produce a region plot of many functions, but Mathematica keeps showing me the little triangles when I save it as pdf. An example: ...
1
vote
0answers
33 views

Conjugate of InterpolatingFunction?

From NDSolve, I got this: {{a1 -> InterpolatingFunction[{{0., 40.}}, "<>"]}} What would be a sensible approach to ...
0
votes
0answers
70 views

Manipulate for Electric Field

I'm kind of new to Mathematica but I'm getting the hang of it slowly. Anyways, I'm trying to do a project on the electric field of two particles so my professor helped me with this code (sorry in ...
0
votes
0answers
29 views

Find the values of parameters so that the matrix is symmetric positive definite

Good evening , I have a matrix 20x20 in symbolic form. The matrix depends on 5 parameters (a,b,c,d,e). I would like to get the interval of each parameters that ensures that the matrix S is symmetric ...
0
votes
0answers
29 views

Meaning of FourierParameters [on hold]

Many of the Fourier analysis functions take a FourierParameters option. FourierParameters. The documentation just says is an option to Fourier and related ...
2
votes
1answer
37 views

When to use GenerateConditions->True

Many functions, usuallly those involving integration, take a GenerateConditions option which often defaults to False, or at ...
2
votes
1answer
57 views

Generating the set of all strings within a fixed edit distance of a initial string?

Provided a starting string initialString, and a particular alphabet of allowed characters {"A","B","C","D","E",...}, how can I ...
0
votes
1answer
44 views

Loading Statistics`Library`

I need to use a number of functions from theStatistics`Library` namespace. Since that is a bit of a mouthful I would like to import it, but I get errors: ...
4
votes
2answers
135 views

How can I avoid getting the error message Goto::nolabel in my code?

If anyone could suggest a reason why Label[begin] ... Goto[begin] would return Hold[Goto[Begin]], and (better) how can I avoid ...
1
vote
1answer
73 views

Overlay Rectangle on a ListPlot

I have a ListPlot of 100 data points in the range of 0 and 1. Now I'm trying to find a way to overlay (four) rectangles onto the listplot in 0.25 steps horizontally. Essentially I just have BinLists ...
2
votes
1answer
50 views

Importing data from excel and assigning a variable to each of its columns

How should I assign variables to the data imported from excel containing 3 columns which are time, mean and standard deviation. I want to perform operations on the three variables to get new ...
0
votes
0answers
36 views

Ticks don't display on Y-Axis of Histogram when using PlotRange

I have a histogram, if I create it without specifying the PlotRange it works fine and the ticks on the Y-Axis are displayed ...
5
votes
0answers
68 views

Strategies to find curves on messy data using FindCurvePath

I have a set of data points that correspond to roots of a transcendental equation with respect to a parameter (the abscissa) which, by the properties of the system, define continuous curves (might be ...
3
votes
1answer
48 views

Variable number of nested variable-range sums

I would like to express the following nested sum in Mathematica: $$ S(m,j,N) = \sum_{k_1=m+j-1}^{N-1} f(N,k_1) \sum_{k_2=m+j-2}^{k_1-1} f(k_1,k_2) \cdots \sum_{k_m=j}^{k_{m-1}-1} f(k_{m-1},k_m) $$ ...
6
votes
0answers
61 views

Efficient JSON parser for Mathematica

Im looking for a efficient way of parsing JSON data in Mathematica. I am having a lot of problems with ImportString because it uses Java, is too slow, and uses too ...
1
vote
2answers
53 views

How to sort the adjecency matrix of bipartite graph so to have two off-diagonal blocks

In a bipartite graphs there are two class of nodes, say A and B. Each node of class A may interact only with nodes of the class B, and viceversa. The corresponding adjecency matrix is thus composed by ...
1
vote
0answers
47 views

Solving for a charge distribution from a dipole moment [on hold]

I've been looking around but I haven't been able to find any way of solving this conceptually simple problem. In short I am trying to find the charge density in a dielectric in an external electric ...
0
votes
1answer
59 views

Where can I find a dark stylesheet for mathematica?

The default white is very tiring for the eye after some hours.
0
votes
2answers
29 views

Expand expression into quotient of negative power series

I have a function T(z) and want to expand it to the following form: At the end I want to have a list of equations, which can calculate a0, a1, a2, b0, b1 and b2 with different values of h1, h2, ...
0
votes
2answers
25 views

How can I troubleshoot a PDF that fails to import?

I'm trying to import a PDF file whose text I'd like to parse, but I'm getting an error with no explanation: ...
3
votes
2answers
108 views

Finding the parameter that makes real part of an eigenvalue of a matrix 0

I have the following 3x3 matrix: $\left( \begin{array}{ccc} 0.04 -0.4 b & 0 & 0.04 -0.4 b \\ 0 & -0.08-1.2 b & -0.06-0.9 b \\ 1.04 -0.4 b & 2.08 -0.8 b & 0 \end{array} ...
3
votes
1answer
101 views

Surface area of intersecting spheres

Given a sphere of radius 1 centered at the origin and $n$ spheres with radii $r_i$ centered at predefined coordinates, $c_i$, in space, I am after the surface area of the unit sphere that is not ...

15 30 50 per page