11
votes
1answer
94 views

What is the effect of giving ColorFunctionScaling a numerical argument?

(by making a mistake) I realised that ColorFunctionScaling can take a list of numerical arguments rather than just booleans. The following is true for ...
3
votes
2answers
59 views

Using Dataset with TimeObjects in EventSeries

I'm new to Mathematica, and while this is potentially quite easy, I'm having difficulty using TimeObjects in the EventSeries ...
3
votes
2answers
101 views
0
votes
0answers
25 views

Get rid of infinty in matrix elements (by seperately defination of diagonal and off-diagonal elements)

I want to generate a matrix in which the elements have the below rule to be generated: ...
4
votes
1answer
88 views

Better use of pattern matching in replacing elements of a list

I have a list of reals and I'm replacing those which are contained in a given interval with two different values depending on wheter the selected reals are positive or negative. I came up with this ...
4
votes
1answer
1k views

Plotting a complicated vector field

If we consider the vector $\left ( A \cdot \nabla \right) \: B$, we have in Cartesian coordinates $$\left ( A \cdot \nabla \right) \: B = \left ( A \cdot \nabla B_x \right ) e_x + \left ( A \cdot \...
2
votes
2answers
8k views

How to Plot an Infinite Series

I want to sketch the graphs of $$u(t,x)=\frac{1}{2}+\sum_{n\geq 1} \frac{1}{n\pi} ((-1)^n-1)e^{-n^2t}\sin(nx)$$ for $t=0, 0.01, 0.1, 0.5, 1, 10$ on the same axes. For $t=0$, I input ...
14
votes
5answers
2k views

Plotting an epicycloid

I am fairly new to Mathematica, and I cannot figure out how to plot an epicycloid. I have plotted some neat looking things in my attempts, but I still can't make one. I am not looking to make an ...
-1
votes
0answers
54 views

Why is result from evaluation not simpler? [on hold]

How do I define variables $\qquad u(x_m , y_n)\qquad m,n=1,2,\dots,4$ in Mathematica? $x_m, y_n$ are known and $u$ is unknown. The result I am getting is: ...
1
vote
1answer
72 views

How can I access a variable using Position?

I want to define a vector PosVec[a, b] dependent on the variables a and b of a matrix ...
0
votes
0answers
22 views

NDSolve: Improperly assigned stepsize

This is not a question which I estimate is aided in answering by providing complete code, which is excessively long. I ran an NDSolve[] at ...
2
votes
3answers
166 views

Create a 900x900 matrix and diagonalize it

I have to create a 900x900 matrix and then diagonalize it. It is something similar to the below matrix. The value of a,b,c,d....up to 900 values (which are the first column and row) are the number. ...
0
votes
1answer
34 views

Frameticks in RegionPlot [on hold]

I have an issue with frameticks in region plot. Look at the code ...
2
votes
0answers
53 views

Removing plot artifacts (SphericalPlot3D)

Using SphericalPlot3D, I find I get two types of artifact: A discontinuity in the surface reflectance at $\theta=0,2\pi$ Little edges, or perhaps gaps between ...
8
votes
1answer
336 views

MathLink error while calling a custom Mathematica function - MLGet out of sequence

I am trying to call Mathematica 10 from F#. Following the C# sample code found in the Mathematica directory, I have written the following F# code: ...
5
votes
1answer
343 views

How to download pictures from webpage automatically?

Today, I read a good web page about love which owns many beautiful pictures. It is fussy for me to download every picture hand-by-hand, so I'd like to use Mathematica to do this case automatically. I ...
47
votes
2answers
724 views

Guidelines for planning custom GUI in Mathematica

This post is here to save your time during GUI development in Mathematica. And one way to do this is to know where limits are and to be aware of features that are awaiting. Background Usually I don'...
7
votes
3answers
408 views

How can I stop the blinking when rotating a Graphics3D? [closed]

I wrote a function interactiveDesign that returns different Graphics3D items in a list. Then I call the function ...
4
votes
4answers
335 views

Lists in Mathematica

I have a list of the form: { {0.185794, {α -> 5.8794, χ -> 3.14159}} ,{0.206365, {α -> 6.07943, χ -> 3.14159}} } How can I transform this list such ...
1
vote
2answers
85 views

how do I control the output of Reduce function?

Reduce[x*y > 50 && x*y < 100 && x < 100 && x > 1 && y > 1 && y < 50, {x, y}, Integers] what if I want ...
1
vote
2answers
57 views
1
vote
1answer
75 views

Substutution of Ansatz of an ODE [duplicate]

I am only beginning to learn to use Mathematica, and got stuck while trying to implement what is apparently a simple substitution rule. So I have a second order ODE in f, and I want to put in the ...
0
votes
0answers
36 views

NDSolve and piecewise functions

I'm trying to use NDSolve on a Pde for a function that is made up of several pretty complicated functions, most of which are themselves functions of an underlying piecewise function. When I try to ...
0
votes
1answer
59 views

Solving a polynomial where variables are constrained to take only some values

I want to find out which combinations of 1's and 0's would make this kind of equation be null: ...
0
votes
0answers
30 views

Do you know the options of RandomSeed in ClusteringComponents? [on hold]

ClusteringComponents[data, 4, 1, Method -> "KMeans", DistanceFunction-> EuclideanDistance, "RandomSeed" -> 10] As above, 4 means cluster number, ...
1
vote
2answers
85 views

Engel expansion

How do I do an Engel expansion in Mathematica? And find the unique non-decreasing sequence of positive integers $ \{ a_1 ,a_2,a_3,\dots \}$ , such $$\frac{e}{\pi}=\frac{1}{a_1}+\frac{1}{a_1 a_2}+\...
2
votes
3answers
202 views

Approximation of definite integral by parabolas

This question is related to Trapezoid approximation to definite integral. As promised, I am now asking about how to draw an approximation of integrals by parabolas. I tried to modify MarcoB's code, ...
12
votes
1answer
163 views

Bad interaction between Join and ListPlot (or Plot)

When you write this code: tab = {{1, 1}}; tab = Join[tab, {{2,2}}]; you expect to get the following table: {{1, 1}, {2, 2}} ...
4
votes
2answers
182 views

How to turn a colour entity into a colour directive?

I am not experienced with Wolfram Knowledgebase queries and working with entities. What is the "correct" way to convert a colour entity into a colour directive? Example: ...
3
votes
1answer
84 views

Need help understanding the output of `DSolve`

I give Mathematica 10 the following command: DSolve[I D[P[x], {x, 2}] f[x] - (P'[x])^2 f[x] + 2 I P'[x] f'[x] == 0, P, x] and I have the following output: ...
1
vote
1answer
71 views

Unexpected behaviour of MomentOfInertia

The problem I expected Mathematica to solve rather easily is that of the calculus of a moment of inertia of a "c" section defined by the following Polygon: ...
0
votes
2answers
40 views

TimeSeriesAggregate—reformatting the date

Compute Aggregated Statistics for a Time Series The article linked to above provides a sample of aggregating time series data. ...
0
votes
2answers
37 views

Read timeseries data from CSV

I am new to Mathematica and have v10. I would like to you use the new TimeSeriesAggregate[tsdata, "Quarter", Total] feature to return aggregated descriptive stats. I import a number of columns of ...
0
votes
1answer
144 views

Trapezoid approximation to definite integral

This question is related to Graphically approximating the area under a curve as a sum of rectangular regions. I now was trying to adapt the code by MarcoB to get the approximation of the integral by ...
0
votes
1answer
67 views

Can this expression be calculated symbolically?

I want to do definite integration of the following expression ...
0
votes
1answer
41 views

How can I compute the difference in Y-axis values between data sets with similar X-values

I am new to Mathematica, so this might be a very basic question; however, I cannot find a solution to this and it is taking me very long. For my research I am probing the photoluminescence response ...
11
votes
6answers
397 views

Create a polynomial of a given degree

In Mathematica, how can I create a polynomial function in given variables of a given degree with unknown coefficents? That is, I am looking for a function ...
0
votes
0answers
3 views

Maximum Likelihood Approach for parameter estimation of multi response data, could you provide a tutorial? [migrated]

I was trying to fit the parameters a time dependent system coupled of ODES relate to a kinetic experiment with multi response data. example: A->B+H A+H->C+H A->D dcA(t)/dt=-k1Ca(t)-k2Ca(t)*Ch(t)-k3*Ca(...
25
votes
1answer
1k views

Graph vs. GraphPlot

What is the difference (in purpose) between Graph and GraphPlot? Which function is bested suited to which tasks? Background: I ...
2
votes
1answer
101 views

How do I apply assumptions to a module (or any CompoundExpression)?

Edit: I am looking for a way to apply assumptions to all expressions contained in a compound expression. For example, ...
4
votes
2answers
41 views

Drawing a GraphPlot by preserving the structure of the graph

For eg. GraphPlot[{1 -> 2, 2 -> 1, 3 -> 1, 3 -> 2, 4 -> 1, 4 -> 2, 4 -> 4}, VertexLabeling -> True] Then If I remove the edge (say ...
1
vote
0answers
32 views

Training Hidden Markov Models using Mathematica

I have created a Hidden Markov Process with an initial probability vector, emission and transmission matrices. ...
3
votes
2answers
117 views

Delete elements from a list

I have two lists, for example s={{1,3,2},{1,3,2},{2,3,1},{3,1},{2,3,1}}; c={{3},{1,2},{3}}; First element of c means that ...
0
votes
0answers
39 views
-2
votes
0answers
30 views

Plotting Graph having coloured visuals and coloured lines [on hold]

Somebody please tell me what is "fondo" and "funcero" Plus I'm having a great difficulty in plotting a graph, my graph line doesn't show up. frustrated
10
votes
2answers
536 views

Reproducing the xkcd “Self-Description” comic

Trying to brush up on my programming, I wanted to see if I can reproduce at least the first two panels of the following comic in Mathematica: I have some code for trying to reproduce the first ...
2
votes
1answer
70 views

Co-ordinate Points on a 3D Plot

I have a 3D graph: I want to figure out the values of the variable in the horizontal axes for which the graph has the highest value -- seeing the vertical axis, the value of variables where plot ...
4
votes
1answer
55 views

Installing MATLink without administrator privileges

This web page says that MATLink requires admin rights. First two steps to link Mathematica and MATLAB are: Add MATLAB's bin\win64 directory (bin\win32 for 32-bit versions) to the operating system's ...
1
vote
1answer
57 views

15 30 50 per page