1
vote
1answer
39 views

PlotLegends in ListPlot does not display different markers

I would like to plot a graph with the legends at its side. However, I have managed to plot the legends, but the markers do not match the one in plot (picture bellow): My code for that plot is: ...
16
votes
3answers
362 views

What does None mean in a control specification for Manipulate?

I am now struggling to understand code that contains the following (simplified) Manipulate structure. ...
0
votes
0answers
24 views

Find volume of a translated and rotated ellipsoid below xy (horizontal) plane

I am trying to find the volume of the lower part (above horizontal plane) of an ellipsoid that is clipped by the horizontal (or x-y) plane. This ellipsoid is also translated (i.e. origin is not at ...
1
vote
2answers
30 views

Dimensions of pdf generated by Export[…]

I'm trying to export a Grid table to pdf. When I display the table in the notebook, it has a very long aspect ratio, which I want to preserve in the pdf. However, ...
3
votes
0answers
40 views

Diverging solution to coupled second order ODEs from NDSolve

For a physics application I am considering the radial Bogoliubov-de Gennes equations in two dimensions. In dimensionless form they read as follows $$ \begin{cases} ...
0
votes
1answer
50 views

Copy and Paste Equations Mathematica

How do I export a pdf from Mathematica such that I can paste the code back into Mathematica and restore the formatting. Related: ...
1
vote
2answers
136 views

Partition a range of integers into triples

Some time ago, I was asked to look at a simple to formulate puzzle. Consider the list of numbers {1,2, ..., 33}. Try to split this list in 11 triples, such that in ...
3
votes
1answer
64 views

Put labels sloped along axes in ListPlot3D

The three text labels in the following figure are all in horizontal direction. How to put the labels sloped along each axis to which it is attached? My Code ...
4
votes
1answer
85 views

Better method to swap the values of two 2-D arrays

I have two 2-D matrices $A$ and $B$(owns same dimentions) which have the style written as below: $ \begin{bmatrix} a_{11} & a_{12} & \cdots & a_{1k} &\cdots &\cdots & ...
-4
votes
0answers
24 views

Plot a simple line x=t^3 + c [on hold]

I know mathematica has a plot function but it's not giving me what I want. Using the above equation, how do I get Mathematica to generate a plot of lines for different t and c values?
0
votes
0answers
16 views

Symbol-handling, force-replace instanced variables [duplicate]

Currently I am stuck with the issue of renaming an instanced variable like r1$23314 to a global one. This issue arises as I need to use a "localizeAll" Module in ...
1
vote
0answers
41 views

Twilight Zelda Guardian Puzzle : Shortest Path Proof [on hold]

I'm playing a video game right now and in it is a puzzle (see here). There are solutions to solving it (see here) on the Internet, but I'd like to know if this path is the shortest path (least amount ...
1
vote
1answer
88 views

How to combine VectorPlot and Plot3D

I have a problem with VectorPlot and Plot3D, and I have a code for both but I dont know how to plot the same figure. Here is the code for Plot3D: ...
1
vote
0answers
37 views

Removing gutter shadows from scanned pages

I am new to image processing, and I was hoping someone might set me in the right direction. I am trying to create a simple toolkit for personal use for digitizing scanned book images into a database. ...
17
votes
5answers
1k views

Moving maximum function?

How can I construct a moving maximum function? For example, if I have a list of 12 values: { 5, 6, 9, 3, 2, 6, 7, 8, 1, 1, 4, 7 } and I want to maximize over 3 ...
3
votes
1answer
50 views

How to make new line in mathematica file output?

I know that new line is classically made by "\n". I want to make a string with lines of data and then export it into a file: ...
-2
votes
0answers
28 views

Find the Inverse z(x) in applies z(x)/z(x-1) = y [on hold]

If we know z(x) the zeta function, and applies z(x)/z(x-1) = y. Find the Inverse z(x) i.e z^-1(y) = x
0
votes
1answer
51 views
5
votes
4answers
184 views
0
votes
0answers
66 views

incuding graphics [on hold]

i have typed << GraphicsGraphics << GraphicsLegend The message I got Is: Get::noopen: cannot open GraphicsGraphics I am using mathematica 9.How to solve this.Thank you in advance ...
0
votes
0answers
24 views

Subtracting Series

When I input the following $\sum_{n=0}^{m+1}x[n]-\sum_{n=0}^{m}x[n]$ which in InputForm is: Sum[x[n], {n, 1, 1 + m}] - Sum[x[n], {n, 1, m}] it returns ...
1
vote
1answer
84 views

AutoGeneratedPackage Formatting

If you do Ctrl+Shift+o you open an option inspector. And then you can enable ...
50
votes
3answers
4k views

Metaprogramming in Mathematica

Being functional, and having no "quotation", i.e. essentially treating data and programs semantically same, Mathematica seems naturally capable of doing metaprogramming. But could anyone construct a ...
13
votes
1answer
151 views

Unexpected slowness checking for empty list?

I thought I had a firm understanding of the differences between Equal and SameQ, but this has me puzzled: ...
8
votes
1answer
118 views

Faster trimming of leading/trailing zeroes in rectangular array

Given a (large) rectangular array, e.g. (small for example case): ...
0
votes
2answers
45 views

Express recursion formula by Nest function

I'm fairly new to Mathematica and I have to express a formula by Mathematicas Nest-function. I'd like to find the solution for my formula by my own, thats why I ...
8
votes
2answers
179 views

Asynchronous evaluation on EventHandler

How can I make this progress bar appears when I press Enter? The Button Evaluate works just fine, but when Enter is pressed it jumps the progress bar. It would be ...
2
votes
1answer
68 views

Barchart recognize time series data?

I can't seem to get Barchart to recognize TimeSeries data. For example, my data is: {{1891, 1}, {1892, 1}, {1897, 1}, {1898, 1}, {1903, 1}, {1904, 1}, {1905, 1}, {1908, 4}, {1909, 6}, {1910, ...
2
votes
1answer
46 views

Mathematica - Count number of zeros of a function in an interval

Let's say I have a function, F[x_,d_] = Sqrt[(x^2 - 1)^2 + d^2], and I want to count how many roots (no root, or one root, or two roots etc.) it has in an ...
18
votes
6answers
692 views

How to generate random points in a region?

The Mathematica 10 documentation was updated for FindInstance adding support for regions. In my use case I'm trying to sample points in a set of disks: ...
0
votes
1answer
49 views

Fibonacci Line Search Method

I am attempting to write a code to find to bracket the minimum of a function using the Fibonacci Line Search Method, I believe my code is well written but I am not ...
0
votes
1answer
24 views

Sampling Points Between Two Functions and Plotting Sample Points? (I have partial code) [duplicate]

I want to sample random points between $Cos(x)$ and $Sin(x)$ on $0 \le x\le \frac \pi4$ I was able to do graph the function here in Mathematica. I would like to count, and then plot points between ...
3
votes
1answer
64 views

Evaluation of Derivative in a Module

Can someone help me understand the evaluation procedure in the following two pieces of code? ...
3
votes
2answers
114 views

Plot contours for 3d histograms

I have a data set which is a list of pairs. From this I can easily make a 3d histogram with Histogram3D[data] or a smoothed ...
0
votes
1answer
70 views

Replacement of terms/Pattern matching involving products of derivatives of a function

In delving into Ramanujan summation, I'm trying to get a hold of the relations of the form $$\sum_{n=0}^\infty f(n)=\dfrac{h\frac{d}{dx}}{{\mathrm{e}^{h\frac{d}{dx}}}-1}\int_{0}^\infty ...
1
vote
0answers
108 views

Is there a way to profile Mathematica code in batch mode?

I'd like to profile some Mathematica code to figure out why it's running slowly. Since the code takes about a day to run, I can't use the Wolfram Workbench GUI. Is there a way to run Wolfram Workbench ...
0
votes
1answer
60 views

numerically solving

I am trying to solve for [Lambda] as a function of a (unknown) from this expression ...
3
votes
3answers
112 views

How to use PlotMarkers or Mesh with Plot to creat Marks on the plot

I have a plot and I want to format it for journal paper. I just realized how hard to format a plot for academic purposes using MMA. For example: I want this plot ...
0
votes
0answers
23 views

Slow speed when CUDAQ (from CUDALink) download data from Wolfram servers

In here, there was a similar problem. So I went to the link provided: http://www.wolfram.com/CUDA/CUDAResources.html Now, The table does not have my version. ...
0
votes
0answers
65 views

Benchmarking in V10.1.0 not showing the correct verision of Mathematica?

This was done in V10.1.0, but it's showing that as if it was done in V10.0.0? Computer Specs:(for those who are interested) ...
0
votes
0answers
15 views

problem to using Slideview to show a list of animations

when I use Slideview to show a list of animations, in each individual slide, the animation created by Animate is not running. But this problem does not occur when I change Slideview to Flipview. The ...
1
vote
2answers
51 views

Partial reload of definitions from package

In order to keep my code modular, I have defined some functions in "Foo.wl" file, which I source with Needs["Foo`"]. When I modify a single function in Foo, I quit ...
0
votes
0answers
37 views

Second derivative using ND [duplicate]

I have a function g=f(x,t). The function "g" came from a numerical integration: g[x_?NumericQ,t_?NumericQ]:=NIntegrate[tt[x,r,t],{r,rmin,rmax}] and tt(x,r,t) ...
7
votes
1answer
78 views

Reconstruction of interrupted paths in images

I want to reconstruct paths in images and have already implemented a working method in Mathematica. On the left side you can see an image with interrupted paths and on the right side the reconstructed ...
0
votes
0answers
27 views

How to interface ma output with webpage by php?

Since Raspberry pi has a free version ma, I am wondering how to interface it with php on web. I write some simple code as ...
1
vote
3answers
73 views

Finding roots of transcendental equation and collecting into a list

I am working on a physics reserach project for school and I have run into some troubles working Mathematica. I am a fairly inexperienced mathematica user so any help would very much be appreciated. I ...

15 30 50 per page