Re: Fitting Nonlinear Complex Data(How do you do this?)



Hi,I was wondering if you got any (private) responses to
your query.
Matlab documentation provides a 'curve fitting guide' where
it is written that:
"For fitting curves in a case involving complex data set,
the data set should be split into real and imaginary parts"
An example is given, but boy, is that doc badly written!
I couldn't figure out how to make it work when using the
'fit' function.
Incidentally, and forgive my rant, I think it's ridiculous
that Mathworks has its users bend over backwards to perform
the fitting of complex expressions, something that is
pretty common in many engineering fields.



"Nathan Orloff" <orloffREMOVETHIS@xxxxxxxx> wrote in message
<fsuiqq$r54$1@xxxxxxxxxxxxxxxxxx>...
Hi all,

I saw the help on how to fit nonlinear parameters I did not
really find it too helpful. My goal is to use 'fit' to fit
some complex data I have. The function I am fitting is:

y(x) = a+(b-a)./(1+(sqrt(-1).*c.*(x)).^d

I tried doing the fit separately(real, then imaginary). The
issue is that it would be much better if I could fit both
parts simultaneously. Does anyone have any suggestions?

I was thinking you could concatenate the real and imaginary
parts into a single vector. And then make the cost functions
something like:

y' = real(y);
y'(1+length(y):2*length(y))=imag(y);

But although fit allows custom functions I don't see how to
do this inline.

Nate

.



Relevant Pages

  • Re: Update Query; But keep rest of field...
    ... Left$ and Right$ act like a scissors, counting from left or right, and cutting the string at that point, returning just that portion of the string. ... Comparing "Fitting ABS" with Left$will tell you if the beginning matches the eleven characters in "Fitting ABS". ... Will take "Fit ABS", and add everything except the first eleven characters, of tblItem.to it. ... Using the Design View to create a query, ...
    (microsoft.public.access.queries)
  • Re: Update Query; But keep rest of field...
    ... Using the Design View to create a query, ... UPDATE tblItem SET tblItem.itemMfgItemNumber = "Fit ABS" ... The goal is to find all items that START with "Fitting ABS" and change them ... Fitting PVC Sch40 1" 90 ELL SxS ...
    (microsoft.public.access.queries)
  • Re: Singular matrix in Invert_RtR
    ... Singular matrix in Invert_RtR ... The problem is that Gnuplot's fit uses a procedure known as Marquard-Levenberg algorithm, ... There is an alternative fitting algorithm, Simplex by Nelson & Mead, which is much more stable and can also minimise Chi^2 or the median of residuals in those cases where minimising the sum of squares is statistically inappropriate. ... Unfortunately, Simplex can not directly calculate the standard deviations for the parameters, that is probably the reason why many scientific fitting programs do not use it. ...
    (comp.graphics.apps.gnuplot)
  • Re: how can I alter the x-data of a cfit object after fitting?
    ... These three numbers correspond to the coefficients ... improve the quality of the fit. ... I am fitting histogram data with a Gaussian, ... calibration first and then feed the data to the fitting ...
    (comp.soft-sys.matlab)
  • Re: Fitting Nonlinear Complex Data(How do you do this?)
    ... I saw the help on how to fit nonlinear parameters I did ... some complex data I have. ... The function I am fitting is: ... I tried doing the fit separately ...
    (comp.soft-sys.matlab)