Rank: 80433 based on 0 downloads (last 30 days) and 0 file submitted
photo

Chris van der Togt

E-mail
Lat/Long
52.292404, 4.95772

Personal Profile:
Professional Interests:
neuroscientist

 

Watch this Author's files

 

Comments and Ratings by Chris View all
Updated File Comments Rating
22 Feb 2012 SLM - Shape Language Modeling Least squares spline modeling using shape primitives Author: John D'Errico

Hi John,
i get an error when using
slmengine in the following way;

slmengine(x,y,'degree',1,'interiorknots', 'free','knots', 3, 'leftslope', 0, 'rightminslope', 0);

??? Error using ==> lsqlin at 202
The number of rows in A must be equal to the length of b.

Error in ==> slmengine>solve_slm_system at 2333
[coef,junk,junk,exitflag,junk,lambda] = ...

when I look at the call to lsqlin, Mineq has three values and rhsineq only two.
Mineq = [0 0.5 -0.5];
rhsineq = [0 0];

Is this a bug, or am I calling slmengine incorrectly.

regards,

20 Oct 2009 SLM - Shape Language Modeling Least squares spline modeling using shape primitives Author: John D'Errico

Very nice John, I will cite you in our papers.

I also got this warning:
Warning: Options LargeScale = 'off' and Algorithm = 'trust-region-reflective' conflict.
Ignoring Algorithm and running active-set method. To run trust-region-reflective, set
LargeScale = 'on'. To run active-set without this warning, use Algorithm = 'active-set'.

and added this line after line numer 158 in your slmengine.m file;
fminconoptions.Algorithm = 'active-set';

now I don't get the warning anymore.

Contact us