0
votes
0answers
4 views

Graphics, Import and Inset combined

I need to write a word on a figure, which I have saved as fig.pdf. 1) I import the pdf file to mathematica: a = Import["fig.pdf"][[1]]; 2) Following the ...
0
votes
0answers
4 views

Multiple output cells, suppressed by semicolon

I'd like to write a function that output multiple cells, as in Multiple output cells, but not when the function is called with a semicolon at the end. Any idea how?
-2
votes
1answer
9 views

Calculating the top left corner in a 2d field

Given I have a field with several rectangles like shown in the picture. A point with its x and y coordinates are given. The height(h) and the width(w) are also given. How can I calculate the top ...
0
votes
1answer
12 views

ListPlot problem

I have the following example: x = {1, 2, 3, 4} y = {{1, 2, 3, 4}, {2, 3, 4, 5}, {3, 4, 5, 6}, {4, 5, 6, 7}} Now I can plot: ...
0
votes
0answers
5 views

How to put a moving label

Here is a simple Manipulate with a threshold. ...
0
votes
0answers
5 views

Moving label with manipulate

In the following Manipulate, I would like to plot a distinct comment in each distinct zone which will move with the manipulation. Is it possible ? ...
1
vote
1answer
9 views

Finding negative sequences in a large list: optimization

I ran across an interesting challenge recently, and I was thinking this community would know how to optimize it. I have several data sets which have (currently) about 50k-100k points. The sets ...
4
votes
1answer
15 views

Built-in (or Terse) Method to Combine and Transpose Datasets

From some calculations I have ended with Datasets of the form: ...
1
vote
0answers
8 views

Inconsistent behavior from RegionMeasure on the RegionIntersection between a Polygon and a Line

Consider a Polygon with lines drawn between two of its vertices, ...
-1
votes
0answers
20 views

plotting conditional expression with mathematica

My code that I previously asked, is in this way(that first I define parameters): ...
0
votes
0answers
16 views

Integral Involving HeavisidePi and its Derivative

I have been trying to compute these integrals ...
0
votes
0answers
8 views

Newline in code with MakeExpression

I start with f[x]. In boxes, this is RowBox[{"f", "[", "x", "]"}]. I apply ...
0
votes
1answer
26 views

Export list in 4 columns without curly brackets

I have generated the following list: http://pastebin.com/vmtRrfcD (updated) The dimension of the list is ...
0
votes
0answers
13 views

Dynamic stops when shorten section

When I shorten the sections so I can get the input (slider bar) and out put on the page, Dynamic no longer works. Dynamic only works if you keep all the sections open. Is this a bug or is this ...
0
votes
0answers
15 views

N[Integrate] failing to return an accurate result from an interpolated integrand

I need to N[Integrate] a function Cos[alpha*x]*f(x) between x=0 and 30 at increasing alpha-values. Here f(x) is an interpolated function derived from a set of 120 ...
0
votes
0answers
20 views

Two stage maximization

I'm new to Mathematica and this site. I want to evaluate a two stage maximisation problem. I am interested in finding a1N. I hope this is in the appropriate ...
0
votes
0answers
17 views

How to count number of white voxels in an image

It seems to be a very simple problem. However, I don't have any clue how to count the number of white voxels in a binary 3D image. Re: Consider segm2 in the following link: ...
2
votes
0answers
23 views

The permutation of given number sequence that has specific correlation with another

I am interested in the relationship between the Pearson correlation coefficients and the permutations of two random number sequences. An initial Mathematica study is as below: ...
0
votes
0answers
19 views

How to use Mathematica and Wolfram Alpha for predicting football results?

This is more of a fun question :D. At work we have been discussing and goofing around a lot on how to create algorithms in order to make predictions on the results of the upcoming UEFA EURO 2016 ...
1
vote
2answers
18 views

Grid - change entire row background color based on values on one column?

Given a matrix defined through Grid, how can I specify the background color of entire rows based of the values of the cell in a specific column? For example, I have ...
-2
votes
1answer
49 views

How can I plot conditional expressions?

I want plot an expression that includes some integrals. The values of these integrals are conditional expressions, and this is making plotting difficult. My code: ...
2
votes
0answers
13 views

How do I use Mathematica to upload to Clyp?

Clyp is a service for hosting sound files that (as of now) doesn't require registration. I'm wondering if it's possible to write a function that'll upload a Sound object to Clyp, just like the ...
0
votes
0answers
17 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?
2
votes
2answers
137 views
1
vote
1answer
52 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 ...
4
votes
2answers
41 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 ...
0
votes
0answers
18 views

Stop front-end auto-adjust of window to 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 ...
0
votes
0answers
33 views
1
vote
1answer
60 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 ...
6
votes
1answer
57 views

Integrate and NIntegrate disagreeing over branch cut of Sqrt?

Bug introduced in v9.0.1 or earlier, and persisting through v10.4.1. In Mathematica 10.2 I'm trying to integrate this piecewise continuous function, but ...
1
vote
2answers
35 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 ...
-1
votes
0answers
19 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
4
votes
1answer
61 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 ...
0
votes
0answers
17 views

Text interface + scripts: How to use all available cores

For example, the remote host I'm working on has 12 cores: ...
0
votes
1answer
29 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 ...
7
votes
1answer
60 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: ...
2
votes
0answers
39 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 ...
0
votes
1answer
24 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, ...
0
votes
0answers
10 views
3
votes
2answers
77 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? ...
4
votes
3answers
120 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 ...
0
votes
1answer
31 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, ...
0
votes
1answer
38 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 ...
0
votes
1answer
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 ...
5
votes
2answers
116 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 ...
-2
votes
0answers
28 views

An error in Do Loop

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 ...
0
votes
0answers
27 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 ...
0
votes
1answer
25 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 ...
1
vote
2answers
73 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: ...
1
vote
0answers
26 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...

15 30 50 per page