0
votes
3answers
74 views

Splitting a list of lists

What would be a nice way to split the list list = {1,2,3,{a,b,c},4} into {{1,2,3,a,4},{1,2,3,b,4},{1,2,3,c,4}}
1
vote
1answer
71 views

working with notebooks ('looping' a notebook and storing the results of each step in another notebook)

A notebook contains a series of numerical calculations (numerical integrations, numerical solution of systems of equations etc). Many parameters are involved. The final result is in the form of a ...
6
votes
5answers
952 views

How to check if a line segment intersects with a polygon?

The naive method is to bisect the line segment iteratively as asked here, and then check the bisection points using How to check if a 2D point is in a polygon?. Would there be an other way? I'm ...
3
votes
1answer
76 views

Gridbox alignment problem

I write my own stylesheet. I use GridBox and GridBoxOption to edit the environment of EquationNumbered, in which, I set ...
2
votes
1answer
47 views

How can I drop the “belongs to integers” part from Reduce output?

I have this Mathematica line: Reduce[1/(E^0)^x + 1/(E^1)^x + 1/(E^3)^x == 0, x] that gives the output: ...
0
votes
2answers
73 views

File Handling. How to save the progress in a file?

Assuming I already have the file created. I have a programme that,returns an output, in our case number. I want Mathematica to save this number in a file, together with results saved from previous ...
0
votes
0answers
21 views

Different color for plots inside manipulate object [duplicate]

I want to plot two functions in the same plot (meand and approxmean) with a different color. When I place the plot commands outside of the manipulate and grid region they are colored differently but ...
4
votes
1answer
112 views

Mathematica learning resource dealing with bayesian inference

Is there any good resource dealing with both Mathematica and bayesian inference?
1
vote
2answers
69 views

Set Options on a system function has effect on all notebooks

I have a Notebook A with default context: "Unique to this Notebook". In there I set an option: SetOptions[Interpolation, InterpolationOrder -> 1] This has ...
1
vote
1answer
114 views

ReadList can't read “.csv” data with correct line number?

Well, the problem was solved today. Since "testAll.csv" is generated by Java/Eclipse, and I noticed that the LineSeperator is ...
10
votes
0answers
283 views

Minesweeper beta:How to Dynamic a lot of graphics with high-speed

Recently I want to write a game,Minesweeper.Here is my completed code. ...
4
votes
1answer
64 views

Edge Labels with distance between vertices

I am trying to make traveling salesman type graph using the locations of NFL stadiums as the vertices. I need to get the EdgeLabels to appear was the distance between the vertices. I was able to ...
0
votes
1answer
54 views

timing series algorithm [closed]

If we have a timing series t1,t2,t3.... and every timing point means an event. A time interval T is given. Once T is given, how to calculate the maximum event number happening in T? case A ...
0
votes
1answer
55 views

I want to import a .csv to Mathematica but when I do that the decimal are denoted by “,”. What can I do? I need points [duplicate]

Import["C:\Users\Maria Del Mar\Desktop\LECCIÓN\masa a.csv", "table", FieldSeparators -> ";"] // TableForm
2
votes
1answer
95 views

Finding maximum value with LinearProgramming command

So here is a HW problem I was assigned: *Thriftem Bank is in the process of devising a loan policy that involves a maximum of $12 million. The following table provides the pertinent data about ...
0
votes
0answers
73 views

Export “Print” command to text file

I am trying to create a text file with specific information in exact locations. This is my code: ...
1
vote
0answers
94 views

Where can I learn to use mathematica comprehensively? [duplicate]

I've heard great things about all the wonders and capabilities of mathematica. I've had the software for sometime now, but all I know how to do are simple calculations and stuff shown in the hands on ...
0
votes
0answers
46 views
0
votes
1answer
112 views
0
votes
0answers
123 views

NonlinearModelFit indeterminate or not a list of real numbers

I'm trying to fit my data using NonlinearModelFit but keep getting errors that I don't quite understand how to correct ...
3
votes
2answers
177 views

How can I best plot timestamps by frequency-to-date?

I have a site called Sudomemo. I record when I first see a user in the database; and I've exported it in JSON format, located here. http://www.sudomemo.net/statistics/firstSeenDump.php I've done ...
1
vote
1answer
128 views

Why does LyapunovSolve solve non-standard form?

LyapunovSolve[A,Q] solves the equation $A P + P A^T = Q$ for $P$ whereas the standard form (wikipedia,lecture notes, p.25, linear control systems) of the Lyapunov ...
1
vote
0answers
44 views

How edit stylesheet to change automatic numbering of Reference type to numeric, not alphabetic?

I applied the stylesheet JournalArticle to a notebook. When I use the Reference cell style there, it automatically inserts "A.", "B.", etc., to number the cells. What exactly should one do ...
5
votes
3answers
440 views

Camel hump string split

Given System names of 2 or more characters: systemNames = Names["System`*"] // Select[StringLength[#] > 1 &] ; Is ...
6
votes
2answers
135 views

Visualizing subgraphs while specifying the locations of vertexes

I would like to visualize separate connected components of a graph defined by data points lying in the two-dimensional plane by surrounding each connected component subgraph by a bounding curve. I ...
3
votes
1answer
97 views

System of differential equations on a directed graph

I want to use Mathematica to model blood flow through a capillary network. The approach we are using is going to be to create a directed graph, and have a system of differential equations at each ...
1
vote
0answers
34 views

Upvalues and order of interpretation

I'm trying to use UpValues to improve the usability of some code, but I am running into an issue where the order of the UpValues is important, and I am not sure if it is my understanding or a ...
0
votes
0answers
82 views

How to disable multiple document interface (MDI) in Mathematica 10?

I want that there was no window-in-window interface. How to disable it?
0
votes
0answers
81 views

Generalized method of moments (GMM) estimation in Mathematica

As I was trying to get more help on implementing Generalized method of moments (GMM) estimation in Mathematica, I came across: Mark Fisher's Mathematica packages and notebooks If you have any useful ...
0
votes
1answer
65 views

Strange wiggles on the surface of a ParametricPlot3D

I'm trying to plot two cones but when I try to display them, Mathematica (10) makes the edges wiggly. My code is: ...
1
vote
1answer
33 views

Generate Degeneracies in List [duplicate]

I have a list with n entries and I would like to duplicate this list p times. In my case because of the Degeneracy of my Eigenvalues. For example I have {3,2,1} and it is five-fold-degenerate so that ...
1
vote
3answers
203 views

Developing a function of two variables from given data

Cross listed from MSE: http://math.stackexchange.com/questions/1029399/developing-a-function-of-two-variables-from-given-data (I believe Mathematica SE is an appropriate place to ask this, as well.) ...
6
votes
3answers
209 views

How to define a nested function like this?

For example, I want to calculate the limit of $\frac{1}{1+\frac{2}{1+\frac{3}{1+\ldots}}}$. So I want to define: $f(1)=1$ $f(2)=\frac{1}{1+2}$ $f(3)=\frac{1}{1+\frac{2}{1+3}}$ Then I calculate ...
1
vote
1answer
59 views

How to exclude a region from ParametricPlot

Suppose I have functions f[x] and g[x] which are defined in the region 0 ≤ x ≤ 1 and ...
10
votes
5answers
592 views

How to subtract one list from another, treating each elements as distinct, assuming the smaller list is a subset of the larger list? [duplicate]

Suppose that I have two lists of different sizes, the smaller of which is a subset of the larger, e.g. a = {"A", "A", "A", "B", "B", "C"} b = {"A", "B"} How can ...
1
vote
1answer
61 views

Table for 3D list plot

I have a function which is defined with an integral and a sum, in other words, its numerical, so i want to make a table (nxm) with the following entries: ...
6
votes
0answers
73 views

Tooltips do not seem to work with InfiniteLine (ConicHullRegion) in 2D Graphics

Fixed in 10.1 The InfiniteLine functionality added to version 10 is very handy for obvious reasons, however a Tooltip added ...
9
votes
1answer
111 views

Installing LinkSnooper on Windows

I tried to install LinkSnooper on my Windows 7 computer, as described in the documentation and here. According to the answer of @Todd Gayley, I entered the following string in the field MLOpen: ...
1
vote
6answers
107 views

Make a new list by filtering unwanted rows

I have a list like this. ...
0
votes
1answer
65 views

How to define y[n] = f1 y[n-1] + u[n]?

I need to define a recursion defined by the following equation $y(n) = f_1 y(n-1) + u(n)$ In which $f_1$ is a symbolic constant. I know the values of the sequence u and I know the initial value of ...
1
vote
2answers
84 views

How do you apply an algorithm individually to an array with many graphs

I have and array with many graphs to which I want to apply an algorithm (below) to each graph in an array that contains all my graphs. ...
11
votes
2answers
191 views

Weird behaviour when using Scale, Rotate in Graphics

bug persisting through 10.1 (windows) (Edited to simplify drawing) I have a drawing of two tangent circles: ...
1
vote
0answers
84 views

Maxwell propagator problem 2D [closed]

Hi folks I`m trying to turn certain matlab code to mathematica but for some reason it doesnt really want to do it could you please assist me a bit. Thanks The matlab code is as follows: ...
4
votes
4answers
137 views

What is wrong with this code?

I am plotting polar curves with PolarPlot and I tried plotting a parabola with $\frac{2}{1-\cos x}$ and $\sec x$. Obviously there are two singularities that have ...
13
votes
1answer
254 views

PlotLegends won't generate automatically more than 15 labels in v10

Update: NOT fixed in v 10.1.0 (Mar2015) While testing the examples from this recent post, i've noticed a problem in V.10 with PlotLegends when it has to ...
0
votes
1answer
45 views

Labels are not stored with the plot [closed]

I apply Labeled to a plot and want to save it all with "Save Graphics as" clicking on the plot. Doing so I can only select and store the plot without the label. If ...
2
votes
0answers
242 views

NDSolve and strange “nonlinear coefficients problem”

I'm stuck solving the following problem. I defined two functions as follows: $$ \varphi(\lambda) = \frac{\left((\lambda-2)^2-1 \right)^2}{4}$$ $$ \gamma(\lambda) = \varepsilon^2 ...
0
votes
0answers
26 views

Wrong results from a branching function (ternary channel) [duplicate]

I'm doing one ternary channel and using the following code: ...
2
votes
0answers
97 views

A counterintuitive RegionPlot behavior [closed]

The region between a straight line and a hyperbola in the fourth quadrant is not shown by the RegionPlot: ...
1
vote
0answers
87 views

Bug? Or what? Why it returns internal functions? [closed]

Using version 10.0.1 I input: FullSimplify[(Pi^s Zeta[1 - s] Sin[(Pi s)/2] 2^(s - 1))/Zeta[s]] Mathematica returns: ...

15 30 50 per page