Top new questions this week:

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: ...

discrete-math

On the ordering of the vertices of a polygon

Writing: pts = {{1, 0}, {2, 0}, {2, 3}, {3, 3}, {3, 4}, {0, 4}, {0, 3}, {1, 3}, {1, 0}}; Graphics[{Red, Point[pts], Blue, Line[pts]}] we get: and all of this ...

graphics sorting polygons

How would one add Hyperreals as a new type to Mathematica?

Hyperreals are an extension to the real numbers; they formalise the concepts of infinities and infinitestimals as numbers, rather than the named limit points outside of the system of reals and form ...

number-representation custom-notation real

How to force Dataset[] to output tables with named columns instead of named rows

In the mathematica documentation it says that the syntax required to make "a table with named columns" is the following: So consider some data arranged in this syntax: ...

dataset

Change the color of error bars when using Around in ListPlot

I wanted to use Around to plot values with uncertainties in ListPlot. But when I used PlotStyle to change the color, it only changes the color of the dots but not the error bars; for example ...

plotting

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 ...

dataset

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 ...

equation-solving functions

Greatest hits from previous weeks:

When importing a data file what are the comment symbols for Mathematica? That is, given a file like this blabla bulbul 1 2 6 54 7 ... .. what symbol do I have ...

import text

Why round to even integers?

According to the Mathematica help: Round rounds numbers of the form x.5 toward the nearest even integer. For example: Round[{0.5, 1.5, 2.5, 3.5, 4.5}] gives ...

numerics language-design

How to make a spiroglyphic?

Some (older) members of this group might remember playing vinyl LP records. Recently, at the Abbey Road studio there was a spiroglyphics coloring book for sale. It looks like a nice programming ...

image-processing code-request generative-art

How to generate a random snowflake

'Tis the season... And it's about time I posed my first question on Mathematica Stack Exchange. So, here's an holiday quest for you Graphics (and P-Chem?) gurus. What is your best code for generating ...

graphics random simulation generative-art

Plot, extract data to a file

I need to save data that Mathematica uses inside the Plot command. The format that I would like to have is: x1 y1 x2 y2 ..... ...

plotting export

How do I plot a plane EM wave?

I would like to display an electromagnetic (EM) wave. I have written code that works, but it does not "shade" the area between the graph and the axes. Both the ...

graphics physics visualization

How do I make a 3DPlot using cylindrical coordinates?

I'm trying to plot a function of the form $z(r,\theta)$ where $r \in [0, R]$ for a finite R, $\theta \in [0,2\pi[$, and z is the third coordinate, a function of the first two. I couldn't find anything ...

plotting

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

I have the following set of equations: ...

output-formatting precision-and-accuracy input-forms number-form
 asked by Paul Razvan Berg 1 vote

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....

list-manipulation image-processing series-expansion code-request coefficients