All Questions

Filter by
Sorted by
Tagged with
2
votes
0answers
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 ...
1
vote
1answer
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 ...
0
votes
0answers
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 ...
1
vote
1answer
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 ...
0
votes
0answers
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 ...
0
votes
0answers
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. ...
0
votes
1answer
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 ...
1
vote
2answers
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 ...
0
votes
0answers
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!
0
votes
0answers
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). ...
1
vote
2answers
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 ...
0
votes
1answer
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: ...
0
votes
0answers
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 ...
4
votes
2answers
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: ...
0
votes
0answers
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. ...
0
votes
0answers
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 ...
0
votes
0answers
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 ...
0
votes
0answers
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 ...
0
votes
0answers
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 ...
0
votes
1answer
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 ...
0
votes
0answers
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....
1
vote
2answers
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. ...
0
votes
1answer
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 ...
0
votes
1answer
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, ...
1
vote
0answers
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 ...
0
votes
2answers
49 views
0
votes
0answers
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 ...
3
votes
2answers
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. ...
6
votes
1answer
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 ...
2
votes
1answer
32 views

Problems with NSolve

In 12.2.0 for Microsoft Windows (64-bit) (December 12, 2020), once defined: ...
2
votes
0answers
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: ...
0
votes
0answers
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. ...
1
vote
1answer
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 ...
0
votes
1answer
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?
0
votes
1answer
23 views

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

I have problem making ND work. Define relevant needs and vectors ...
3
votes
0answers
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 ...
0
votes
0answers
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-...
1
vote
1answer
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 ...
2
votes
0answers
54 views

Algorithmically imposing a substitution in a difficult integral

Consider the following integral: $$I = \frac{1}{\pi c^2} \int\limits_{r=0}^c 2 \pi r\ e^{-\frac{ \left( \sqrt{a^2 - r^2} -\sqrt{b^2 - r^2} \right)}{\lambda}}\ dr$$ under the conditions $a>b>c>...
2
votes
1answer
98 views

Create a spherical Hex mesh from given surface points

For my calculations I got two spherical meshes. One is a surface mesh of quadrilateral elements and the other is the corresponding "inner" hex mesh. The problem with the meshes is, that the ...
0
votes
1answer
43 views

Extracting intensity from density plot image given color bar

I have an image showing a density plot from a paper, as well as the corresponding color bar. I am trying to convert this back to a 2D array of intensities. Here's what I did, which works but seems to ...
0
votes
1answer
49 views

Errors relating to MatrixFunction

I ran this and got some errors. Does anyone know how to solve this? First I want to caluclate A^2(A+I) with ...
1
vote
1answer
31 views

Reshaping a Matrix [closed]

So i have a matrix like Matrix = $\begin{pmatrix} Mat1 & Mat2 \\ Mat 3 & Mat4 \end{pmatrix} $ Where each matrix mat is a 2x2 matrix mat1= $\begin{pmatrix} 1 & 2 \\ 3 & 4 \end{pmatrix}...
0
votes
1answer
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 ...
1
vote
3answers
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 ...
1
vote
1answer
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 ...
1
vote
0answers
47 views
1
vote
1answer
55 views

How to speed up (or parallelize) NDSolve?

Is there a way to speed up the following code: ...
0
votes
0answers
39 views

Producing a single $Aborted

Using @Kuba's faboulous answer here (stop notebook evaluation when Assert fails), I produce the following code to stop execution if I am evaluating a long initialization cell while the notebook ...
0
votes
0answers
78 views

Why is precision limited to 17 decimals? [closed]

I understand that we can use NumberForm and N to display a number with a fixed number of decimals: ...

15 30 50 per page
1
2 3 4 5
1544