# All Questions

19 views

### Evaluates fine but blank printing/pdf?

Hey guys I've got a document that evaluates fine but when I go to print preview/print/convert to pdf the result is a single blank page. Any thoughts as to how this occurs?
152 views

### Is it possible to assign numbers generated in an Error-Message?

If I have a differential equation of the form ...
58 views

### Antialiasing points on a line?

I'm probably being stupid here, but I can't get my points to go in a smooth line: At this scale they should all equally cover the red line. I must be doing something wrong, anyhow I tried to use ...
52 views

### How to make height of PlotLegend the same as height of plot which has a fixed horizontal width

This is a problem of Legends in density plot. As pointed out by this post. Generally we want to same height of legend bar and plot. The code for the basic case is ...
38 views

### Stop front-end from auto-scrolling notebook to show output

I have made a simple "percent complete" output to track my For loop, where I incrementally print values and then delete the output right before printing the next ...
36 views

### How to set color function to black & white monochromatic density plot [on hold]

Here is a density function ...
74 views

### Solving for five unknowns in a 3 x 3 matrix

I know that matrix.Transpose[matrix] = IdentityMatrix[3] matrix = {{0.8111, 0.4867, -0.3244}, {a,b,0}, {c,d,e}} I tried ...
111 views

### Integrate and NIntegrate disagreeing over branch cut of Sqrt?

Bug introduced after v8.0.4 and before v9.0.1, and persisting through v10.4.1. In Mathematica 10.2 I'm trying to integrate this piecewise continuous function, but ...
41 views

### Plotting points using adjacency matrix

Given an adjacency matrix on n vertices and a polygon on n vertices, how to add edges from adjacency matrix on the Polygon? eg: if polygon is {(0,0),(0,1),(1,0),(1,1)} and the adjacency matrix has 1 ...
20 views

### how to choose from M a point which will be the center of the circle, and in that circle must be a minimum of points [on hold]

C programming on a plane are given a set of points M. Choose from M a point which will be the center of the circle, and in that circle must be a minimum of points
71 views

### Argument attributes for pure functions

In his book, Leonid Shifrin says: One important limitation of the # - & notation for the pure functions is that it is ...
18 views

### Text interface + scripts: How to use all available cores

For example, the remote host I'm working on has 12 cores: ...
49 views

### Solving and Plotting Infinite sums over solutions to transcendental equation involving Bessel functions

I am trying to use Mathematica to plot the following equation $E(q,\Delta)$ vs $qa$, for set values of $D \Delta/a^2$ and $\bar\rho a/D$. I have looked at other stackexchange posts which deal with ...
78 views

### ArrayPlot with a user-defined color function is misbehaving

I am using ArrayPlot to show some arrays with values from 0 to 1. I want 0 to be black and 1 to be white, so I am using: ...
48 views

### How to understand the LocalClusteringCoefficient use in directed graph? [duplicate]

When this function use in undirected graphs,its action is normally and can be explained by this formula $$CC_v=\frac{n}{C_{k}^{2}}=\frac{2n}{k(k-1)}$$ n is adjacent nodes of $v$'s number of ...
27 views

### Troubles with showing axis after saving in EPS

I'm trying to save a picture in EPS and then to put it into my LaTeX document. But when I put it the left axis is not shown. How do I fix it? (look at the screens) If I save the image in JPG, ...
17 views

### Subtle behavior differences of DialogNotebook and PaletteNotebook when using FileNameSetter

Consider code snippet 1 which displays desired behavior: ...
107 views

### Visibility Graph of Polygon

Could anyone provide a function that takes a polygon as input and outputs its visibility graph ? Visibility Graph If not, is there a function that checks whether a line segment lies inside a polygon? ...
125 views

### Extracting *firstly roots* from some lists to plot their pairs values

I have two different lists as list1 and list2. Their ListPlot3D of them are: and As shown in these plots, there are some points of which ...
58 views

### Stopping NDSolve when encountering stiffness

I am solving a differential equation for different initial conditions using ParametricNDSolveValue. I need to look at the value of the solution at some later point, ...
61 views

### Extracting the data of each frame from an AVI file

What's the most straightforward way to "Import" the data of an AVI video? For instance, if I record a 30 frame per second video, then after 10 seconds I would have 300 frames. How can I import the ...
35 views

### Replace argument of delayed function before it evaluates [duplicate]

How should I use replace so that f[x_] := x^2 Replace[f[3], 3 -> 1] OUT = 9 evaluates to 1, instead of 9? This way, the replacement of the argument is done ...
129 views

### How-to ensure consistent legend when using PieChart?

Description: I would like to enforce consistent legend and style throughout dynamic PieChart evaluation. Problem: Based on current implementation, the color ...
34 views

### An error in Do Loop [on hold]

I previously asked a question a bout how to make Do Loop with if condition in this post: Do loop with If condition Actually I applied the answer of @JasonB by using Reap and Sow on a function in ...
28 views

### How does one use InputField in CDF Player? [on hold]

The Wolfram website says "InputField[x, Number] works normally in CDF Player, Player Pro, and Mathematica." So I made a CDF with this code: InputField[x, Number] When I try to run this in CDF ...
27 views

### Probems using 2 For and a AppendTo to cycle through my Equation to solve some matrixes

I am trying to solve a few problems here. I have an equation with multiple variables that I am trying to solve in For loop method. I will attach the file below. In addition I am trying to get it to ...
83 views

### Add marks in multiple functions in Plot

I am looking for any options to draw 2D plot of differently marked curves for given functions, thus one can distinguish it by the provided legend. For instance: ...
31 views

### Speeding up solving nonlinear Schroedinger equation in 3D with NDSolve with periodic boundary conditions

I have a question on speeding up solving nonlinear Schroedinger equation in 3D with NDSolve with periodic boundary conditions. I build the ODE system with NDSolve...
37 views

### nonatomic expression expected when trying to sum of the integrals of two functions

newbie to MMA. After computing the following two integrals: ...
79 views

### Error - Differential equation //2

This is a follow-up question, since it relates to the solution of a modified version of the original differential equation discussed here: Differential equation: NDSolve::berr I receive an error ...
88 views

### ListContourPlot cannot plot enormous datafile [on hold]

I would like to create a ListContourPlot from a list with about $7,000,000$ triplets (x,y,z) using the following code: ...
68 views

### How can I fix my code? [on hold]

I am running this following code in Mathematica. It shows some error message. I have no problem with it. But it does not show the output for $m=1/2$. It shows me the output when $m=1$ and $m=2$. How ...
67 views

### How to generate grid points on boundary of $[-1,1]^d$ for arbitrary dimension $d$ and specified resolution?

This must be a trivial thing but I was not able to find a function for it in Mathematica. How do you efficiently create a grid with constant but specific resolution $r$ in all directions on the ...
28 views

### Make a table OF matrices [on hold]

I have a number of matrices that are outputted and it would be very useful to be able to compare them in a table. Firstly, this is the first part of the code needed ...
75 views

### What would be the Mathematica equivalent of sparse in MATLAB?

The sparse function in MATLAB does the following: S = sparse(i,j,v) generates a sparse matrix S from the triplets i, j, and v such that S(i(k),j(k)) = v(k). The ...
28 views

### A simple question on recuperation of a result [closed]

It's perhaps an already ask question and perhpas it is stupid, but I do not know how to search for it. If sol = Solve[a x^2 + b x + c == 0, x] when calling ...
70 views

### Animate Spring Pendelum

Is there ANYBODY who can solve this exercise??? Visualize the oscillation of a spring pendulum . Write to a function ( modules ) "spring mass" [ eg , nzigzag ] , which visualizes the spring ( Line ) ...
57 views

### Differential equation: NDSolve::berr

I'm trying to solve the following differential equation. I'm able to obtain a solution, and that solution looks more or less as how the theory predict it should be. ...
42 views

### Logarithmic scale in an ParametricPlot obtained from ODE boundary conditions

How do I plot an ParametricPlot with the x-axis using an logarithmic scale? Since I need to use an ParametricPlot, I can not use the LogLinPlot[] and I also was not able to find any viable Solution in ...
48 views

### Can I use function to generate List from another? [on hold]

Suppose we got a 3 dimensional List M(x,y,z),xyz indicates the dimension number. Can I get a new List use just function like NewList=M(x,y,z+1)/M(x,y-1,z)? M here would like {{{a[1, 1, 1], a[1, 1, ...
56 views

### How can I write the coding in mathematica based on time? [on hold]

Hi, I need some help for my problems. May anyone help me in coding I want to make For loop based on time for this matrix. I want to change to look the changes of alpha3 when increasing of time with ...
31 views

### How do I prevent Root and RootSum from expanding over quadratic roots?

For quadratics, RootSum[a #^2 + b # + c &, Cos[#] &] Immediately turns into and also, ...
34 views

### How to replace Real part o f a complex number [closed]

I want to replace the real part of a list of complex numbers by zero. I try these two solutions but it does not works ...
101 views

### Image Filtering in the frequency domain

Here is a good starting to fiter image in the frequency domain lena = ColorSeparate[ImageResize[ExampleData[{"TestImage", "Lena"}],{121,121}]][[1]]; (Create a ...
46 views

### Contour plot with a condition

I have a simple contour plot and wanted to find solutions only when both x and y are integers. The following code doesn't seem to work. ...
42 views

### Get asymptotic form of a Legendre function expression [on hold]

How to get the asymptotic expression of the first element of the following list with small x and very large n? ...
36 views

### Time series decomposition using wavelet transform [on hold]

I have a monthly time series data. I want to perform a non-decimated discrete wavelet transform to decompose the time series into its different time scale components (level 6). Is there a way of doing ...
16 views

### build absolute value equations know solution [migrated]

We have absolute value equations with unknown coefficients: |x + a| = b and we know solutions: x = 11 and x = 5 We need ...