# All Questions

77,197 questions
Filter by
Sorted by
Tagged with
9 views

### Changing graphics coordinates to the image coordinate frame

The graphics libraries I'm used to using with images, all use image coordinate frames. That is, the origin is in the upper left hand corner. I'm relatively new to using Mathematica for image ...
11 views

### Manipulate, IF statements, and displaying plots

When using manipulate and plotting a function within an IF statement, curly brackets appear in the panle with the displayed plot. Here is a simple version of the issue. Can someone tell how to ...
21 views

### Regression Using Tangents Of Curve

Many identical cars coasting down a perfectly consistent and level road. Each starting at an arbitrary speed. I can see how fast the cars are going. I have snapshots of random periods while they ...
25 views

### dataset highlight rows based on cell values

With the new Dataset/Background option feature introduced in 12.1, I would like to highlight the rows when either of the two columns has one of the target values in ...
15 views

### How to delete or replace the symbol " from a string?

I have a very odd problem. I am trying to import a txt file that contains biological data. At first, the data is a string, but ultimately (as there are species names and branch lengths for a species ...
20 views

### Unable to hide triangulation lines in GeoGraphics

The following code produces a night region that shows triangulation. I thought that EdgeForm[None] would hide it, but it does not. ...
58 views

### Can anyone provide a Roadmap to learn Wolfram Mathematica

I know someone who finished masters in mathematics but literally knows nothing about how to use computers, now he wants to learn how to apply all of the math he knows using computers so I'm doing the ...
30 views

### Trying to Animate Piecewise Solution to Inviscid Burger's Equation

So I've got a piecewise solution to an Inviscid Burger's Equation and I've been trying to plot the time evolution of my solution with Mathematica ...
7 views

### Can FormPage be used to upload a file (a CSV to be specific)?

I want to use FormPage to give the user an option to upload a CSV file and once it is uploaded, the data from the file should be plotted. How can this be done? Thanks!
22 views

### How to plot a single column of data exported from a CSV file?

I am importing data from a CSV file using this code: k = Import["D:/MTU/Mathematica/data.csv"]; Once I have this data, I want to plot it as a scatterplot (I guess I use LinePlot for that). ...
37 views

### Animating a Parametric Plot of Planetary Motion

I have been trying to make a simple animation of planetary motion, but I can't seem to get it to work. I'm still new to this program so I am not sure how to make it work. Can anyone help? Here is my ...
33 views

### Differences in Mathematica's behaviour with identical functions

I have three functions whose identity was verified, but WM doesn't behave itself equally with them. The code is: ...
15 views

### ListContourPlot Scaling Data as Log [closed]

I have been trying to make a ListContourPlot where the data is scaled by Log10. However, when I try to use scaling functions I ...
88 views

### Finding “chains” of numbers in a matrix

To give some context, this problem is related to music theory. I have a matrix I'm generating with this code: ...
18 views

### Scatter plot change colors of points

I am currently trying to visualize a scatter plot given x and y-axis from the table Data and the colors of the points I want to come from the table valuesnew. ...
29 views

### How do I flip one of my loops of current to be in the other direction?

I'm new to Mathematica and I have two loops of current that are both going in the same direction, but I want to flip them so that they go in opposite directions... I can't figure out where I'm going ...
28 views

### I have plotted 4 different plots (each are different variables) but used the same 3 methods to solve in each

I have 4 different plots and each for displacement, angle theta, velocity and angular velocity. I used 3 different methods to solve and I don't know how to produce those 3 methods in one plot. For ...
23 views

### How to plot a function on a vector field? [closed]

I want to plot the line p2 on the vector field p1. However, when I use the show method to do so, they are plotted separately instead of the line p2 combined onto the vector field p1. How can I display ...
21 views

### Problem with the Rank of a matrix after a FindRoot

I am solving a boundary problem defined by a set of four-component vectorial functions. Without going into many details, I have two functions on the left and two on the right of an interface. The ...
39 views

### How to specify shape of network with Graph function?

I have the code you see below which displays the network that you see. However, I want to structure it so that it is flipped horizontally, and the 2, 3, 4, 5 quadrilateral is a square, and so that the ...
22 views

### Problem using KarhunenLoeveDecomposition

I have a matrix called stochasticData.mat which size is 211302*50 and I need to perform the Karhunen-Loève decomposition on it to calculate the uncorrelated random variables. Note that stochasticData....
65 views

### How do I display magnetic field lines in 2D/3D with a stick of current?

I'm new to Mathematica (trying it out for an electromagnetism course) and struggling with plotting magnetic field lines using a line of current. Not a torturous, not a cylinder, not a circle. A line. ...
39 views

### Importing selected data from text files

I have a large number of text files in a folder with different names. These are the output data files from an experiment. Each text file has first 50 lines of text, followed by four columns of ...
42 views

### How can I do NonlinearModelFit for only specific parameters?

I have a two dimensional data of the form $$\{x,y,f[x,y]\}$$. For example, ...
22 views

### A natural work with Missing values

For statistical procedures, is there some simple setting to automatically skip the Missing values? (e.g. Options -> "SkipMissing") The naive ...
49 views

...
24 views

### Print[] text in the style of Message[]

I would like to imitate the aesthetic style of Message[] text, but using Print[], and customising the colour. The output I ...
121 views

### Default colors of curves

how may I find the name or definitions of colors which are used by default in Plots. I use WM12 ie, if I plot some function it has "blue" colour, next function has "orange" colour. ...
229 views

### How to formulate this problem in Mathematica?

Say, I have the following expressions f = R[p] g = S[p] where R,S are rational functions, and I want to find a polynomial such that ...
32 views

### Problems with NSolve

In 12.2.0 for Microsoft Windows (64-bit) (December 12, 2020), once defined: ...
75 views

### How would I use Mathematica to solve this question?

Given the following matrix, A, that corresponds to a particular subset of the world wide web: ...
57 views

### How to convert a Python code to a Mathematica code?

I've written the following code in Python. I want to write this code in Mathematica but I don't know Mathematica. How can I convert this code to a code in Mathematica? Thanks in advance. ...
44 views

### Variables I defined in Module are not evaluated as I expected

I want to make and use object like stuff of Object-Oriented Programming language(like JavaScript) in Mathematica and am trying it by referring to the answer of this question using ...
36 views

### Does TTest taking into account the Welch's t-test?

TTest has an option VerifyTestAssumptions for "EqualVariance", does it automatically switch to Welch's t-test when variance of the two data sample differ a lot?
23 views

### Numerical derivative (ND) not working for orthonormalized eigenvectors of a matrix

I have problem making ND work. Define relevant needs and vectors ...
28 views

### Unexpected behaviour with Coefficient

If I run expr = (CF G[0, zb])/(1 - zb) + (CF zb^2 G[0, zb])/(1 - zb) + (2 CF G[1, zb])/(1 - zb) + (2 CF zb^2 G[1, zb])/(1 - zb); Coefficient[expr, zb, -1] in ...
53 views

### Solving non-linear equations self consistently

I am trying to solve two nonlinear equations self consistently and I have other fourth order algebraic equation. Such equations are important to calculate phase diagram in superconductors in co-...
57 views

### how to transform a decimal into a radical equivalent with minimal error,and find a correct syntax?

I have been solving this equation x^x^x == 36 , Mathematica does not give me a solution by applying traditional methods , neither with ...
54 views

87 views

### _?NumericQ inside NDSolve to speed up code

I've seen some people using _?NumericQ to prevent symbolic calculation and speed up NDSolve. Why in this simple code is not ...
99 views

### Interpolating and plotting 3D data

I am having trouble interpolating and plotting a set of 3D data. As it appears I have an unstructured grid, tried Interpolation[data, InterpolationOrder->1] but ...
81 views

### PDF of sum of (1/(1+uniform distribution)) and a normal distribution

I have a continuous uniform random variable $P∼U(0,1)$ and a normal random variable $X∼N(0,σ)$. If $Z$ is given by $Z=\frac{1}{1+P}+X$ where $X$ and $P$ are independent variables, how can I calculate ...
47 views

### Why don't AccountingForm, NumberForm and DecimalForm print more decimals?

I have the following set of equations: ...
55 views

### How to speed up (or parallelize) NDSolve?

Is there a way to speed up the following code: ...