# SA-W

Last seen: 4 Tage vor Aktiv seit 2021

Followers: 0   Following: 0

#### Statistik

Abzeichen anzeigen

#### Feeds

Anzeigen nach

Frage

wait for several system calls to finish
I am calling three external programs and can only continue in the matlab program after all programs are finished. Each of them w...

3 Monate vor | 2 Antworten | 0

### 2

Antworten

Frage

uniform knot vector for splines
Suppose we have uniform interpolation points, e.g x = [1 2 3 4 5 6] The functions for knot generation produce knots of the for...

3 Monate vor | 1 Antwort | 0

### 1

Antwort

Frage

express basis spline derivative in terms of interpolation values
x = [1 2 3 4 5]; y = randn(size(x)); f = spapi(5,x,y); fdd = fnder(f, 2); If we evaluate the second derivative at a given po...

4 Monate vor | 1 Antwort | 0

### 1

Antwort

Frage

steps to convert spline from B-form to pp-form (fn2fm)
x = [3.0,4.5,6.0,7.5,9.0,12.0,15.0]; y = [0 0.0343653 0.0694232 0.105143 0.141178 0.246013 0.630537]; f_bm = spapi(5, x, y); ...

4 Monate vor | 1 Antwort | 0

### 1

Antwort

Frage

spapi: why slvblk instead of backslash operator?
% data x = [3.0,4.5,6.0,7.5,9.0,12.0,15.0]; y = [0 0.0343653 0.0694232 0.105143 0.141178 0.246013 0.630537]; xq = linspace(...

5 Monate vor | 1 Antwort | 0

### 1

Antwort

Frage

distribution of interpolation points in spline interpolation
rng("default") n = 10; x = linspace(1,10,n); xi = linspace(min(x), max(x), 1e3); y = rand(length(x)); pp = csape(x,y); % in...

5 Monate vor | 1 Antwort | 0

### 1

Antwort

Frage

cubic spline interpolation - mixed boundary conditions possible?
We need two boundary conditions. Is it possible to specify the first and second derivative at the same boundary point? In csap...

5 Monate vor | 3 Antworten | 0

### 3

Antworten

Frage

Interpolation schemes that produce positive second derivatives of the interpolant
Given a set of x-values and y-values. The interpoland to this data should have non-negative second derivatives, allowed to be di...

6 Monate vor | 5 Antworten | 0

### 5

Antworten

Frage

fmincon optimization: is the first order optimality very sensititve to changes in the step tolerance?
I use fmincon interior-point algorithm to fit parameters to a pde. Here are my basic settings: opts = optimoptions('fmincon',...

8 Monate vor | 1 Antwort | 1

### 1

Antwort

Frage

parfor chuncks: are loop iterations running in parallel WITHIN a chunck on local machine?
I know that parfor does load-balancing to break the loop iterations into chuncks which are then sent to the workers. Demo exam...

8 Monate vor | 1 Antwort | 0

### 1

Antwort

Frage

global optimization in parallel in combination with external pde solver
I use MultiStart from the global optimization toolbox to run lsqnonlin solver for a bunch of start vectors. I want to run the l...

8 Monate vor | 1 Antwort | 0

### 1

Antwort

Frage

matlab uitable: split columns into several rows
I construct an uitable from a struct like: % params is a struct T = struct2table(params); fields = fieldnames(params)'; fig ...

10 Monate vor | 1 Antwort | 0

### 1

Antwort

Frage

graphical visualization of input parameters collected in a struct/array
My simulation depends on a whole bunch of input parameters that control various features of the simulation. I decided to group...

11 Monate vor | 2 Antworten | 0

### 2

Antworten

Frage

vectorize expression containing if statement
A = [-5 3 2;2 3 4; 3 5 6; -2 8 9]; %compute product of columns in a vectorized fashion A(:,1).*A(:,2).*A(:,3); %calculate the...

etwa ein Jahr vor | 1 Antwort | 0

### 1

Antwort

Frage

tall array introduces significant overhead if I call gather() at every iteration in a loop
I want to figure out the spread of the invariants of a symmetric 3x3 matrix using the code below %input nPts = 2; ub = 2.0; ...

etwa ein Jahr vor | 1 Antwort | 0

### 1

Antwort

Frage

out-of-memory because of large array: tall array as a workaround?
Given a symmetric, positive definite 3x3 matrix (6 independent components), I want to figure out the spread of the first and sec...

etwa ein Jahr vor | 1 Antwort | 0

### 1

Antwort

Frage

how can I increase the performance of this loop?
nPts = 15; a = linspace(0.1, 2.0, nPts); b = linspace(0.1, 2.0, nPts); c = linspace(0.1, 2.0, nPts); d = linspace(-0.3, 2....

etwa ein Jahr vor | 1 Antwort | 0

### 1

Antwort

Frage

scatteredInterpolant: what is linear interpolation in 2d?
%coords supportPts = [3 3; 3.3 3; 3 3.25; 3.3 3.25; 3.6 3; 3.6 3.25; 3 3.5; 3.3 3.5; 3.6 3.5]; %values Fval = [0 0.1121 0.064...

etwa ein Jahr vor | 1 Antwort | 0

### 1

Antwort

Beantwortet
can I pass these nonlinear constraints to lsqnonlin?
residual =[residual; smallnumber*[diff(G,2);diff(H,2)]] This is an equivalent way to implement my suggestion I just realize th...

etwa ein Jahr vor | 0

Frage

c++ engine API: minimal example gives segmentation fault, see stacktrace
I built an c++ API engine using a minimal example as shown here https://de.mathworks.com/help/matlab/matlab_external/test-your-...

etwa ein Jahr vor | 1 Antwort | 0

### 1

Antwort

Frage

bilinear extrapolation based on interp2
[X,Y] = meshgrid(0:10); Z = X.^2 + Y.^2; [Xq,Yq] = meshgrid(0:0.25,10); V = interp2(X,Y,Z,Xq,Vq,'linear'); I want to use int...

etwa ein Jahr vor | 2 Antworten | 1

### 2

Antworten

Frage

can I pass these nonlinear constraints to lsqnonlin?
Let denote a function of two variables and the parameters of the optimization problem which I want to solve with lsqnonli...

etwa ein Jahr vor | 3 Antworten | 0

### 3

Antworten

Frage

symbolic differentiation to find analytical expressions that are time-consuming to calculate manually?
Given a function of two variables f(x,y) = I want to find the analytial expression of the determinant of the Hessian of . ar...

etwa ein Jahr vor | 0 Antworten | 0

### 0

Antworten

Frage

lsqnonlin optimization: large condition number of Jacobian matrix at all iterations, but full rank
I use lsqnonlin to solve a non-linear data-fitting problem (fitting parameters of a partial differential equation). The minimiza...

etwa ein Jahr vor | 2 Antworten | 1

### 2

Antworten

Frage

source code of multistart in global optimization toolbox
I am currently using multistart to perform optimization with multiple start vectors. ms = Multistart(...) ... = run(ms,...) ...

etwa ein Jahr vor | 1 Antwort | 0

### 1

Antwort

Frage

import bubblechart in latex document and typeset text (x-labels,...) by latex -- possible?
I created two bubblecharts next to each other in a tiledlayout(1,2) and want to include it in my tex document. Both matlab2tikz...

mehr als ein Jahr vor | 1 Antwort | 0

### 1

Antwort

Frage

gradient of bubble colors in a bubble chart
I want to create a bubblechart with three different bubble colors. One group of bubbles is red, the second group is blue, and ...

mehr als ein Jahr vor | 1 Antwort | 0

### 1

Antwort

Frage

natural cubic spline interpolation of y-values: how to get derivative of the spline wrt the y-values?
Given a data set with support points x_1,...,x_n and corresponding y-values y_1,...,y_n. My objective is to create a cubic spli...

mehr als ein Jahr vor | 3 Antworten | 0

### 3

Antworten

Frage

optimization: have function return NaN but not at initial point
I use fmincon interior-point algoritm to solve my optimization problem. Based on Matlab's recommendation, I let my function re...

mehr als ein Jahr vor | 1 Antwort | 1

### 1

Antwort

Frage

is the objective function stochastic (-> use something like patternsearch) or deterministic?
My objective function is given by f(x) = ||d^sim(x) - d^exp||^2 d^exp is a constant vector of measurements, to which I add ra...

mehr als ein Jahr vor | 1 Antwort | 0

Antwort