Community Profile

# Fredrik P

### Stockholm University

Last seen: 2 maanden ago Active since 2015

#### Content Feed

View by

How to fit a curve with negative powers of x
For the benefit of posterity: x = 1:20; y = 5 - x.^(-1); p = polyfit(1 ./ x, y, 1); yhat = polyval(p, 1 ./ (1:30)); fig...

7 maanden ago | 2

Question

Create large array of zeros without MATLAB:array:SizeLimitExceeded (perhaps on disc)
I want to create a rather large array of zeros, but run into a `MATLAB:array:SizeLimitExceeded` error as the generated array is ...

9 maanden ago | 1 answer | 0

### 1

Question

Locate index and weights for linear interpolation for a monotonically increasing vector
I have a performance critical function that amounts to finding all that is needed to interpolate a point (or a vector of points)...

ongeveer een jaar ago | 1 answer | 0

### 1

Question

Matlab crashes when using py.matplotlib.pyplot.plot()
I want to use Python's matplotlib in Matlab but I can't make even this simple example close; clear; clc; x = py.numpy.arange(2...

bijna 3 jaar ago | 1 answer | 0

### 1

Question

Vertical alignment of OpenType font
I have tried to use the font Fira Sans in my figures but fail to use its OpenType version in Matlab R2019a on Windows 10. My MWE...

bijna 3 jaar ago | 1 answer | 0

### 1

Question

List of built-in functions?
Is there somewhere a list of Matlab’s built-in functions like |histc| that are not written in Matlab own scripting language? Tha...

ongeveer 3 jaar ago | 2 answers | 1

### 2

Question

Faster finding of 1D linear interpolation nodes and weights for each element in ND matrix
In a problem I'm working on now, I compute some values in a matrix x and I then for each element in x need to find the index of ...

ongeveer 3 jaar ago | 0 answers | 0

### 0

Sorting 2D matrix and retaining nodes in triangle groups

ongeveer 3 jaar ago | 0

| accepted

Question

Sorting 2D matrix and retaining nodes in triangle groups
I am trying to optimize a script (below) that finds the bounding boxes to functional values of all lower left triangles in a 2D ...

ongeveer 4 jaar ago | 1 answer | 0