# All Questions

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: ...
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]
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 ...
31 views

...
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 ...
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 ...
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 ...
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 ...
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: ...
19 views

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

/edit Nevermind i figured it out, i now have: ...
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 ...
32 views

### Revert y-axis in RegionPlot

I have the following code: ...
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 ...
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: ...
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 ...
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 ...
64 views

### How to solve this integral equation?

I am trying to solve for x the integral equation : ...
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?
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 ...
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 ...
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 ...
54 views

### Manipulate executes twice [on hold]

I need help, guys! Here the script: ...
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) ...
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}. ...
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 ...
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 ...
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 ...
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$ ...
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: ...
33 views

### Conjugate of InterpolatingFunction?

From NDSolve, I got this: {{a1 -> InterpolatingFunction[{{0., 40.}}, "<>"]}} What would be a sensible approach to ...
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 ...
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 ...
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 ...
37 views

### When to use GenerateConditions->True

Many functions, usuallly those involving integration, take a GenerateConditions option which often defaults to False, or at ...
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 ...
44 views

### Loading StatisticsLibrary

I need to use a number of functions from theStatisticsLibrary namespace. Since that is a bit of a mouthful I would like to import it, but I get errors: ...
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 ...
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 ...
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 ...
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 ...
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 ...
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)$$ ...
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 ...
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 ...
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 ...
59 views

### Where can I find a dark stylesheet for mathematica?

The default white is very tiring for the eye after some hours.
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, ...