Nonlinear Regression Curve Fitting

Join the discussion
Registration is free. Ask a follow-up in this thread, or start your own.
1 reply · 2K views
Yosty22
Messages
182
Reaction score
4
This isn't a precise homework question, but this seemed like the most reasonable place to post. If not, please feel free to move it.

I have a large set of data points that should fit to a known equation (the Drude-Smith model for conductivity)

The equation the data should fit to is: σ(ω) = (ε0ωp2τ)/(1-iωτ) * [1+Σ(cn)/(1-iωτ)].

I have all of the data, so I have hundreds of data points for σ(ω). I need to have values for other fitting parameters, namely ωp, cn, and τ. To make it solvable, I figure I can do some algebra on the above equation to split it into real and imaginary components, then let ωp be constant. Then, I technically have 2 "equations" (1 real 1 imaginary)and 2 "unknowns" (cn and τ). However, I am unsure how to fit this. Any help would be appreciated.

Note: I will be using MATLAB.
 
Physics news on Phys.org
Yosty22 said:
This isn't a precise homework question, but this seemed like the most reasonable place to post. If not, please feel free to move it.

I have a large set of data points that should fit to a known equation (the Drude-Smith model for conductivity)

The equation the data should fit to is: σ(ω) = (ε0ωp2τ)/(1-iωτ) * [1+Σ(cn)/(1-iωτ)].

I have all of the data, so I have hundreds of data points for σ(ω). I need to have values for other fitting parameters, namely ωp, cn, and τ. To make it solvable, I figure I can do some algebra on the above equation to split it into real and imaginary components, then let ωp be constant. Then, I technically have 2 "equations" (1 real 1 imaginary)and 2 "unknowns" (cn and τ). However, I am unsure how to fit this. Any help would be appreciated.

Note: I will be using MATLAB.

Did you start with the mathworks website? http://www.mathworks.com/help/stats/nonlinear-regression-1.html

Do you already have any code written?