0
votes
0answers
51 views

How to take a list and build sets of 2 elements without duplicates?

I am new to Mathematica so the answer to this question is probably easy. I have a list of 2D-points in the form {{x1, y1}, {x2, y2}, ...} Then I have a function that will take two points and test ...
0
votes
2answers
150 views

How to do this 3D grid drawing? [on hold]

The idea is to make axes 3d, with a more subdued in black mesh, and shafts with their respective numbers with a maximum of 10 in each (black to print after the size of half a sheet craft, vine also ...
0
votes
1answer
40 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 ...
8
votes
3answers
702 views

How to create this spikey in Mathematica?

I came across this post while messying around the StackExchange mobile. I think this thing can be easily done by Mathematica as well but I'm not an expert in geometric field. Can anyone give some ...
4
votes
0answers
73 views

Why isn't SparseArray working in this case?

This works: SparseArray[{{1, 1} -> 1, {2, 2} -> 2}]\ (* {{1, 0}, {0, 2}} *) This works: ...
0
votes
0answers
33 views

How to make a Dataset a Vector or Matrix? [on hold]

I have a Dataset containing some data. I would like to extract single columns as vectors so that I can perform vector and element-wise operations on them. Is this possible in Mathematica? For ...
3
votes
2answers
68 views

How can I find the Quandl codes for metals?

Probably not the right site to ask this, but how can I find out the Quandl codes for different commodities? For example, gold against USD? Tried "CURRFX/XAUUSD", ...
2
votes
2answers
64 views

Slow evaluation of Recurrence plot data from NDSolve: Performance Tuning

I am trying to use a recurrence plot to pinpoint the location when a system re-visits a previous point in its phase portrait. The system (a thin liquid film) is governed by a non-linear differential ...
6
votes
2answers
179 views

Samuel inverse graphing calculator

Samuel Inverse Graphing Calculator (http://www.xamuel.com/inverse-graphing-calculator.php) is a amazing tool. Whichever be your language, you can transform a sentence in an equation. I hav try with Yo....
0
votes
0answers
34 views

VectorPlot3D in cylindrical coordinates

I am using VectorPlot3D to plot fluid flows (in the form of a velocity field), however, I go through quite an involved process to convert flows in Cylindrical ...
6
votes
4answers
170 views

Efficient way to compute a complement while respecting multiplicities [duplicate]

Suppose I have list2 which is a subset of list1. I want to get a res by deleting an element ...
0
votes
0answers
30 views

How to Extract Continuous .png Graph by Constant Piecewise Velocity? [on hold]

Time-Potential Data where the where the absolute values of axis do not matter but the points have possibly an equidistant piecewise velocity when comparing to the thread because regular jumps in the ...
3
votes
3answers
177 views

Why is my ListPlot rounding up fractions?

I'm trying to create a ListPlot that compares a country's poverty fraction with its cellular phone fraction. I'm using this to create the table. ...
3
votes
0answers
61 views

ArrayPad with vectors [on hold]

I would like to pad a nested list like M = {{{a, b}, {c, d}}, {{e, f}, {g, h}}} with some constant "vector", e.g. {0, 0}. ...
2
votes
1answer
113 views

Finding area of intersection regions

I want to be able to find the area of the intersection between a hexagon and a slice. I have tried RegionMeasure or Area but I ...
1
vote
1answer
36 views
13
votes
4answers
553 views

Impose the color for one discrete value above a color predefined gradient

If I plot an array with option ColorFunction -> "Rainbow": ...
18
votes
2answers
512 views

Mysterious behaviour of Pick

As everyone knows, Pick can do amazing things, The most facinating phenomenon is that it can pick though all sorts of lists: The basic & pattern matching: <...
0
votes
1answer
50 views

Putting plots and graphs on a word document [duplicate]

Is there a way to copy and paste or save an image of a graph into a word document?
0
votes
0answers
69 views

Gauss-Jordan program in Mathematica

Hi to everyone I made this program to solve a linear system by Gauss Jordan, this is my code to solve the system: ...
-2
votes
2answers
121 views

Create a filled ListPlot, where the points in the list come from within the regions rather than from the region boundaries

Is it possible to fill, color, under the points in ListPlot where the points define the area and the boundary? Assuming that the number of points are large enough ...
3
votes
3answers
103 views

how to update elements in a matrix with position identified in a list

I am new to mathematica. Could you pls help me on how to write this: I have a $5\times 10$ matrix, for example, ap = ConstantArray[0.001, {5, 10}] I have the ...
3
votes
1answer
72 views
2
votes
1answer
234 views

Trace of intersecting planes

I have a set of curved planes that intersect each other. I only want all the parts of all planes displayed that are above the intersecting traces. Further, I would like to highlight the intersecting ...
2
votes
1answer
78 views

Double Sorting a Matrix

Say I have two matrices {{0, 1, 2, 2}, {2, 1, 0, 2}} and {{2, 1, 0, 2}, {2, 1, 2, 0}} I then sort by the first row ...
4
votes
4answers
110 views

Automatically add debug contents to a program

Sometimes I'll use Print[1] or Print[n] to debug in a long loop, but it's really a boring job to add these sentence by sentence ...
1
vote
1answer
58 views

How to make the variables in $init.m$ not impact the autocompletion

The autocompletion is very convient in Mathematica,but it will make one annoying sometimes when you have a ton variables.I give a scene I encounter.I usually make ...
1
vote
2answers
45 views

How to plot data with different colors (or symbols) depending on a condition [duplicate]

Let's consider a simple example. I want to plot a function on [0;2], depending on a condition: if x<1, I want to plot ...
0
votes
1answer
384 views

Integration of linked PDFs over probability simplex

I'm trying to integrate the following expression: f[a1,p1+p2+p3+p4]*f[a2,p2+p3+p4]*f[a3,p3+p4]*f[a4,p4] Where ...
0
votes
0answers
49 views

Mathematica treating a system of 1st order nonlinear ODEs as a system of DAEs

I'm trying to use NDSolve to solve a system of 1st order nonlinear ODEs. The system of equations is way too long to post here, but it is in the canonical form: $x_i'(t)=f_i(t,x)$. My problem is that ...
45
votes
6answers
10k views

How do I plot coordinates (latitude and longitude pairs) on a geographic map?

I'm attempting for the first time to create a map within Mathematica. In particular, I would like to take an output of points and plot them according to their lat/long values over a geographic map. I ...
0
votes
2answers
75 views

Problem with simplification of $\sqrt{1+\frac{y^2}{x^2}}$

When I evaluate my Mathematica code I get out a term of the following form: $\sqrt{1+\frac{y^2}{x^2}}$. However, I also have $\sqrt{x^2+y^2}$ terms that I would like it to cancel with. For example, ...
0
votes
1answer
61 views

Importing Data to interpolation

I have an external file in extension XLS with looks as follows: This file can be obtained by the link below: Velocidade Angular With certainty this file is generating a list inappropriate for the ...
1
vote
2answers
156 views

Conjugate[a/b + c/d]

Trying to obtain the result of Conjugate[a/b+c/d] only gives the same result. As such, I use Refine as: ...
5
votes
1answer
111 views

The implementation of FunctionRange

How exactly does the FunctionRange work? What kind of algorithm does it use? I looked it up in the manual but it doesn't provide any references or even a name of ...
3
votes
0answers
66 views

Display of ConfusionMatrixPlot depends on Stylesheet [duplicate]

I´m using Classify and do the testing via ClassifierMeasurements. Now I observed that ConfusionMatrixPlot is not shown correctly when using StyleSheet Report(default). Maybe you can reproduce (example ...
4
votes
1answer
289 views

How do I edit the background of Axis labels in my plot?

I'm using the standard report stylesheet in Mathematica and when I output a plot, I've set it up so that I get a white background, however the axis labels still have a gray background. How do I change ...
0
votes
0answers
44 views

Simplify a complex trigonometric equation resulting from constraint solving

In the solving of mechanical constraints, I often meet complex trigonometric equation that I have to simplify. Here the equation I would like to simplify : Mathematica notebook presenting the ...
10
votes
2answers
392 views

Nothing not behaving as expected?

I was thinking that Nothing was doing the same job as the vanishing sequence ##&[]. Yet this exemple shows it doesn't. ...
7
votes
1answer
80 views

How to create permanent intra-notebook links [duplicate]

I'm trying to create a documentation notebook for a package and have entries which reference other entries. I'd like to include the hyperlinks in text formatted cells so that when a reader clicks on ...
1
vote
1answer
115 views

Weird Mathematica Crash [duplicate]

One hour ago, my Mathematica 10.4 StudentEdition, completely crashed, stopped to respond, after I typed 2 letters. For example I wanted to type the command ...
0
votes
1answer
107 views

My plot is cut off if a frametick is “0” but resized if a frametick is “0.” Why?

I have been trying to customize the frame ticks and frame label around a certain contour plot and am running into very strange behavior where the graphics will get cut off by ...
3
votes
2answers
90 views

Inverse action of Thread

I cannot find the original post now, but I'm quite sure that there's an amazing post teaching us how to do Thread on ragged lists. but my problem is how to inverse ...
10
votes
1answer
112 views

How to Copy formatted code without backslashes added?

By default code copied from the FrontEnd is formatted with backslashes added at the ends of lines. For example, evaluating in a Notebook Range[40] and copying ...
3
votes
3answers
133 views

How do we draw some auxiliary lines for typical values of the function in a 2D Plot?

I want to draw some auxiliary lines for typical values of the function in my graph like these blue dashed lines: Also, I want to put the values of the lines by the lines like above one. Do you know ...
0
votes
1answer
82 views

Good looking small plots

Is there a way to make Mathematica adjust the amount of visual clutter (ticks, tick size, linewidth) depending on ImageSize? Long version: I would like to include plots from Mathematica in a LaTeX ...
0
votes
0answers
35 views

How to parallelize a sequential program? [on hold]

I asked this question and I got good answers, but now when I try to make the computing in parallel with this command ...

15 30 50 per page