 
 
 
 
 
 
Re: Fitting to complex values
- To: mathgroup at smc.vnet.net
- Subject: [mg30733] Re: Fitting to complex values
- From: "Lawrence A. Walker Jr." <lwalker701_remove_ at earthlink.net>
- Date: Sat, 8 Sep 2001 02:56:32 -0400 (EDT)
- References: <9nalpb$npj$1@smc.vnet.net>
- Sender: owner-wri-mathgroup at wolfram.com
Hi Max,
Try dividing the complex data into two data sets: real and imaginary. 
Then you can apply the NonlinearFit function twice.
For example
data = {{1, 1+2 I},{2, 3+4 I}, {3, 4+5 I}};
dataRe=Map[{#[[1]],Re[#[[2]]]}&,data];
dataIm=Map[{#[[1]],Im[#[[2]]]}&,data];
NonlinearFit[dataRe, func1, ...];
NonlinearFit[dataIm, func2, ...];
Note, you must specify the functions apriori.
Lawrence
Max Ulbrich wrote:
> Hi,
> 
> I have complex data (re+im) from a lock-in amplifier and want to fit
> them
> to a complex function. Though, the NonlinearFit function doesn't work
> with complex data. Has anyone a solution?
> 
> Max
> 
> mailto:ulbrich at biochem.mpg.de
> 
> 
> 

