Feeds
提问
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 前 | 2 个回答 | 0
2
个回答提问
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 前 | 1 个回答 | 0
1
个回答提问
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 前 | 1 个回答 | 0
1
个回答提问
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 前 | 1 个回答 | 0
1
个回答提问
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 前 | 0 个回答 | 0
0
个回答提问
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 前 | 1 个回答 | 0
1
个回答提问
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 前 | 2 个回答 | 0
2
个回答提问
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 前 | 1 个回答 | 1
1
个回答提问
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 前 | 1 个回答 | 0