photo

Michael Stollenwerk


Last seen: 1 day ago Active since 2020

Followers: 0   Following: 0

Message

Statistics

  • Thankful Level 3
  • Thankful Level 2

View badges

Feeds

View by

Question


Fill up submatrix along third dimension with two dimensional matrix
Given a p by p by N array, e.g. p=3 and N=4, x = NaN(3,3,4); I can easily fill up the 1 by 1 by N submatrix given a "1 by 1 m...

2 years ago | 2 answers | 0

2

answers

Question


Provide partial gradient and Hessian to fminunc.
I have the gradient and Hessian in closed form only for a subset of the variables of my objective function. As an example consid...

2 years ago | 1 answer | 0

1

answer

Question


Matlab turns char into double on cluster.
On the cluster I run matlab -nodesktop -r "program 1" > program_1.out 2>&1 where the first lines of code in "program" look li...

2 years ago | 1 answer | 0

1

answer

Question


How to call objective function in outputfcn or plotfcn during optimization?
I want to minimize a complicated objective function. It returns 1. objective function value and 2. some fit data (like the fitte...

3 years ago | 1 answer | 0

1

answer

Question


Constructing large covariance matrix from correlations and covariances gives non positive definite matrix.
Let's create a large correlation matrix (simply a symmetric matrix with ones on the diagonal and values between -1 and 1 on the ...

3 years ago | 0 answers | 0

0

answers

Question


Permutations of ordered set where only one object changes its position.
Is there a quick way to get all possible permutations where we put one object at all position, while keeping the order of all ot...

3 years ago | 1 answer | 0

1

answer

Question


Combining cell arrays with empty doubles
Suppose I have two cell arrays, with a = cell(1,2); a{1} = 1; b = cell(1,2); b{2} = 2; How can I quickly combine the two t...

4 years ago | 2 answers | 0

2

answers

Question


What happens if I use parfor and the fmincon/fminunc option "UseParallel" together?
I want to minimize the same objective function using different starting points. I have cores available. I have . Consider the...

4 years ago | 1 answer | 1

1

answer

Question


mex-file crashes MATLAB in for loop
When I call the mex function (which was created using my c code below) in a for loop, it crashes Matlab after several runs. Do y...

4 years ago | 1 answer | 0

1

answer