You are not logged in

The fminsearch is now a function in Octave itself. I've run the attached exp2 script in Octave 3.8.0 and the results (a1m, m1m, s1m) match the input parameters (a1, m1, s1), so I think this one is fixed now.

If I've misunderstood the problem, or if you still have problems with fminsearch in Octave 3.8.0, please comment or submit a new bug report.

I am trying to write code to deconvolve superimposed peaks.
I start by setting up a simulation of 2 gaussian peaks and superimposing them (instead of importing real chromatographic data - best to use "clean" model first, right?). Then I try to deconvolve by minimizing residuals.

Main program is exp2.m, which uses functions gaussian.m and fitexp2.m (see attachments).

Using Matlab at work, it works very nicely. I get the exact same values back that I put in (at 4 decimals for all 6 parameters, 3 from each peak). In GNU Octave, it's a mess.

I haven't hacked "Matlab" code in approx 10 years, so maybe there are better approaches to solve the problem (please enlighten me with any good ideas). However, I would expect them to produce the same results...

Again, I hope I'm doing this the right way. Sorry if it's the wrong place or any other error. I'm relatively new to Linux and supernew to Octave. I have checked for similar post as best I could.