Alignment of MEGA-sLASER spectra

I actually made a mistake when loading the new basis file and it fitted using the press30 basis file… sorry about that. Now when I try to fit using the new basis file I get many errors:

Error using lbfgsb (line 92)
x0 and l have mismatchig sizes

Error in fit_Osprey_PrelimReduced>fit_Osprey_PrelimReduced_Model (line 269)
[ampl, ~, ~] = lbfgsb(fun, l, u, opts );

Error in fit_Osprey_PrelimReduced>@(x)fit_Osprey_PrelimReduced_Model(x,inputData,inputSettings) (line 127)
= LevenbergMarquardt(@(x) fit_Osprey_PrelimReduced_Model(x, inputData, inputSettings),x0,lb,ub,opts);

-Humberto