9
votes
2answers
927 views

Did Mathematica 9 remove some previously available stylesheets?

Did Mathematica 9 remove some previously available stylesheets? If so, how can I customize a currently available style sheet to be like a previous one or get previous version's stylesheet back? I ...
5
votes
1answer
164 views

How I can use Apply or Map with If?

I have list of objects: list = {{1, 1, 0.05, 0.05}, {2, 2, 0.05, 0.05}, {13, 13, 0.05, 0.05}}; list = {{x,y,Vx,Vy},{x,y,Vx,Vy},...}; And ...
6
votes
1answer
1k views

Plot electric potential and field

I am trying to plot an electric pottentional of a dielectric cylinder along with it's field. The pottentional is a piecewise function ...
8
votes
1answer
238 views

Cannot plot Quantity values with DateListPlot

Is there a way to use DateListPlot with Quantity values? I retrieved the following time series data from WolframAlpha: ...
1
vote
1answer
277 views

NDSolve for PDE with discontinuous initial/terminal condition

I have an issue with NDSolve for the case of a PDE with discontinuous initial/terminal condition. Consider the PDE solution ...
4
votes
1answer
225 views

How can I colorize an imported model?

How can I colorize an imported model from for example 3ds max? I'm trying to find the way to colorize a 3D plot from an imported model with something like this: ...
8
votes
4answers
497 views

How can I highlight the points lying between two lines in a ListPlot?

I have a list of numbers like the following: list = Table[RandomInteger[1000], {i, 1000}]; And I plot them so: ...
4
votes
1answer
280 views

How can I have an axis label automatically positioned below the X-axis?

I'm attempting to generate some histograms, and I'd like to automatically label the X-axis. However, Histogram[. . ., AxesLabel -> {"X", "Y"}] places the "X" ...
5
votes
1answer
168 views

Why does Dynamic output cause CPU usage when onscreen?

I write such a line in Mathematica: {Slider[Dynamic[s]], Dynamic[f[x_] := s*x]} After evaluation, the CPU immediately runs at full power. And if you scroll the ...
6
votes
1answer
244 views

PlotStyle does not work when plotting a non-evaluated list of functions [duplicate]

When a list of functions is passed to Plot in an unevaluated form (e.g. with Through), the result is a plot with single color. ...
1
vote
2answers
211 views

Thread over a nested list top to bottom until non-list elements are found

I have a nested list: list = {1, 2, {3, 4}, f[a], {2, h[b]}} I would like to apply a function g to all elements of the ...
5
votes
2answers
578 views

Plot3D with coloring based on phase value of f

I'm reading a sample chapter of Visual Complex Functions by E. Wegert. Near the bottom of this page, there is a link "Download Sample pages 1 (pdf, 2.4 MB)" which allows you to read Chapter 2 of the ...
8
votes
4answers
1k views

Sharing an axis between two plots [duplicate]

Possible Duplicate: 1 Plot, 2 Scale/Axis Do I have to code each case of this Grid full of plots separately? What's the most straightforward way to share an axis between two plots in ...
0
votes
2answers
110 views

How to obtain a smaller-sized output from Solve

I am solving a system of 15 simultaneous linear equations using Solve. On running the code, I get a message saying "A very large output was generated" with options ...
3
votes
1answer
311 views

Can some one explain perplexing behavior of arbitrary precision arithmetic?

I was exploring the problem presented by another question, when I ran into some behavior of Mathematica's arbitrary precision arithmetic engine that perplexes me. Here is what I was doing ...
30
votes
3answers
1k views

xkcdConvert routines perform slower in Mathematica 9

I am experiencing some rather large performance decreases in Mathematica version 9.0 using the xkcd-styled plotting routines. I had used the xkcdConvert code ...
5
votes
4answers
1k views

How to get exact roots of this polynomial?

The equation $$ 64x^7 -112x^5 -8x^4 +56x^3 +8x^2 -7x - 1 = 0 $$ has seven solutions $x = 1$, $x = -\dfrac{1}{2}$ and $x = \cos \dfrac{2n\pi}{11}$, where $n$ runs from $1$ to $5$. With ...
3
votes
3answers
500 views

Speed optimization

I have a part of a program that I have to repeatedly call many times (about 2000 to 10000 times) ...
1
vote
1answer
166 views

Export notebook file without launching front-end

I am using a Mathematica script to programmatically generate a Mathematica notebook. The script generates a Notebook expression and then uses ...
25
votes
2answers
3k views

3D heatmap density plot

I have a set of data that looks like {{x1, y1, z1}, {x2, y2, z2}, ...} so it describes points in 3D space. I want to make a heatmap out of this data. So that points ...
4
votes
2answers
748 views

How to fix BodePlot that comes with Mathematica?

I am using Mathematica to go through the examples and exercises on the book Modern Control Systems, 6th edition by Dorf. On page 605, there is a table (Table 8.5) with the Bode plot for several ...
1
vote
1answer
307 views

Combine a (2D)plot with an animation

I have a plot which is rather expensive to "present", and I want to create an animation on top of it. EDIT: "present" here does not just mean create the plot, but also to rasterize and present in on ...
8
votes
2answers
2k views

Is it possible to change the color of plot in Show?

For example: p = Plot[Sin[x], {x, 0, 1}] Is it possible to write options in Show to change the curve's color for example into ...
1
vote
2answers
357 views

How to make a CDF document with dynamic content?

I would like to create a CDF document that uses dynamic content. The example code is: fun=x^2-1; InputField[Dynamic[fun]] And what I get is $Aborted instead of interactive document. How to make a ...
0
votes
1answer
255 views

How to use the same color bar for different DensityPlot [duplicate]

Possible Duplicate: Fixed color scale in multiple density plots I want to normalize different DensityPlots. The scale for the color bar is from 0 to 1. I ...
11
votes
1answer
184 views

Why are the attributes of Plot changing?

In version 9, with a newly started Mathematica session, try the following code: ...
5
votes
2answers
434 views

How can I get every distinct size-n combination of a list?

Let's say I have a list: {a, b, c} I would like to, for say $n=2$ get every distinct pair from that list. That is, the expected result should be, for some ...
6
votes
1answer
162 views

How to programmatically replace an expression in a .m file

I'm trying to write some code to programmatically replace a particular expression in my init.m file with a different expression. (It'll probably be some multi-line ...
2
votes
3answers
187 views

how can I generate a sequence of assignments?

I want to make a sequence like follows r[1]= r[2]= r[3]= r[4]= .... r[n]= The above r[i] represents coordinates which I have ...
10
votes
1answer
465 views

Explain a Mathematica winning one-liner

...
3
votes
1answer
730 views

Lorenz map for the Rössler system [duplicate]

Possible Duplicate: How to find all the local minima/maxima in a range I have the solution of the following non-linear system: ...
1
vote
1answer
92 views

How do I define a function that, when given a list of parameters, plots a family of functions?

So far I've got this: draw[a_, b_] := Plot[{f[a, b[[1]], x], f[a, b[[2]], x]}, {x, 0, 5}] The function draw will be used like ...
5
votes
4answers
402 views

Join lists in a list of lists

What's the best way to join two consecutive lists in a list of lists ? For example if I have the list x = {{1}, {2}, {3}, {4}} and I want to get in x ...
2
votes
2answers
141 views

How can I replace part of list and have the replacement affect the initial list?

I have a list: list = {{1,1,0.05,0.05}, {2,2,0.05,0.05}}; and I want to do this change ...
5
votes
2answers
846 views

Log-Plots and PlotRange

Why does the PlotRange option in ...
6
votes
1answer
162 views

Save icon in toolbar in v9

In previous versions of MMA there was a 'Save" icon in the toolbar when you do the "Show Toolbar" from the "Window" menu. This is not present in v9. Anybody know how to get it back?
4
votes
2answers
258 views

How can I find the lines that go through?

I have a 80 x 80 x 50 dataset. From this dataset, I get some curves. These curves are randomly seeded, by which I mean that their starting points have been chosen randomly. Below, you can find an ...
5
votes
1answer
581 views

How can I view the code implementing a built-in Mathematica function? [duplicate]

Possible Duplicate: What is the most convenient way to read definitions of in-memory symbols when we don’t have the source files? I would like to look at the code that implements ...
3
votes
1answer
709 views

Animating a circle to move along an curve

Basically, I want to move a graphic (such as a circle) along a given path (such as sin(x)). I was thinking that the trick might be making the x and y coordinates of the circle vary based on the ...
5
votes
1answer
808 views

Problem with plotting eigenvalues

I want to plot the eigenvalues of a matrix which is dependant on a parameter (well, actually I want to plot a tight-binding electronic band structure). The dimension of the hamitonian matrix is ...
0
votes
1answer
118 views

Why am I not getting Indeterminate for f[1] when f[x_] = (x - 1)/(x - 1)? [closed]

In Mathematica 9 If I write: f[x_] = (x - 1)/(x - 1) I get 1 And if then I write: ...
4
votes
1answer
366 views

Order of integration changes output of indefinite multiple integral in Mathematica 7

I'm trying to integrate a form-factor used in the calculation of radiation between two rectangles in perpendicular planes. While the integral is usually done over fixed limits, I am trying to do the ...
5
votes
0answers
224 views

Can I modify line-break behavior of inline cells?

When I insert an inline cell into a text cell that is too long for the whole inline cell to fit on the current line, Mathematica pushes the whole inline cell to the beginning of the next line. That ...
4
votes
3answers
270 views

Defining functions with special cases

I'm trying to define a function myFunc with a special case: myFunc[x_, y_] = (x^2 - y) Log[x^2 - y]; myFunc[x_, x_^2] = 0; ...
3
votes
1answer
264 views

Turn list of edges into a polygon function

I have a list of coordinates that define the edges of a polygon and I would like to get a function defining the area Inside out if it (The polygon is convex and the points are in order) So that for ...
5
votes
1answer
180 views

Numbered symbols

I work with an exterior algebra over $R^n$. I have the basis $\{1,\omega_i\}_{i=1}^n$ in this algebra, and my differential operator is defined as $$d\omega_k=\sum_{i>j>0,i+j=k} (i-j)w_i\wedge ...
4
votes
2answers
185 views

How to create 'help' `?` for a function (as documentation)

I have defined a function PassVeltB in some complicated way. But now I would like to add a little documentation that gives the user information on how it is to be ...
1
vote
1answer
148 views

Random sample with gap sizes

Lets say I have 101 instances of data with multiple attributes. In particular case, one attribute has 7 unique values. I want to get ...
10
votes
5answers
3k views

Finding the centroid of the area between two curves

When I have an area bounded by curves, is there a built-in way to find the center of the area? Or do I have to plot it first and then use ComponentMeasurements on ...
11
votes
1answer
429 views

How can I obtain a zero-filled Fourier transform, as produced by MATLAB's fft?

The MATLAB FFT function, fft(X,n), can be used to return the n-point DFT. This effectively extends the original signal, X, to ...

15 30 50 per page