Re: LevenbergMarquardt



The function "fun" is a function you define (which can be named
whatever you want... it doesn't have to be called "fun"). This
function is the model that you are fitting your data to. The
function takes as its arguments the parameter vector "x" and the
values of the independent variables represented as a vector "xdata"
and returns the value of the model with those parameters at the data
point.

-Matt

Régine D wrote:


Régine D wrote :

Thanks for your answer.
But I read the doc lsqnonlin(in the tutorial) and I don't
understand
what is the function "fun". When I used this function, the message
"Undefined command/function 'fun'" appears.
'Ligne' is the name of my spectrum which has 270 points. I would
like
to curve-fit it(with 'Levenberg-Marquard' algorithm)on 15 points.
Can you help me?

Joseph wrote:


You're in luck! Matlab has a function called 'lsqnonlin'
It has an option available that allows for the
Lenvenberg-Marquardt
algorithm

best way to get information about it is to type
doc lsqnonlin

Régine D wrote:


Hi,
I'm a sudent who used MatlabR2006a for the first time.
At present, I do a work experience in Laboratory.
My work is to use MatlabR2006 to curve-fitting a spectrum
at
differents positions with the 'Levenberg-Marquardt'
algorithm.
More,
my spectrum is in transmittance(T) and I must pass it in
absorbance(A) (A=log(1/T)).
How can I do it for the curve fitting and the
transmittance?

Thanks you in advance.
.



Relevant Pages

  • Re: An on-topic post
    ... you even mention a Spectrum, ... I think the hardware shines through even if you use a really crappy ROM ... It just doesn't seem to be as much fun as it once was. ...
    (comp.sys.sinclair)
  • U2U software
    ... CET was the standard software distribution system used on both teletext on ... We even had software to write this for the Spectrum that ran on ... All good fun, and I do hope someone curate all this stuff some place. ...
    (comp.sys.sinclair)
  • Re: LevenbergMarquardt
    ... "Undefined command/function 'fun'" appears. ... 'Ligne' is the name of my spectrum which has 270 points. ... I do a work experience in Laboratory. ... differents positions with the 'Levenberg-Marquardt' algorithm. ...
    (comp.soft-sys.matlab)
  • Re: Soft top recommendations
    ... Adrian wrote: ... >If he was looking around a lower end of that spectrum, ... >2cv - Definitely the most fun you'll have with the wind in your hair for a ... Prev by Date: ...
    (uk.rec.cars.misc)