Description: a = lorentzfit(y,x)
LORENTZFIT fits the input Y(X) with a Lorentzian function of the form
Y (X) = A1./((X- A2).^2+ A3)
INPUTS
Y : Dependent variable values [Y(X)]
X : Independent variable values
OUTPUT
A : List of Lorentzian parameters [A1 A2 A3]
EXAMPLE
x =-16:0.1:35
y = 19.4./((x- 7).^2+ 15.8)+ randn(size(x))./10
a = lorentzfit(y,x)
Jered R Wells
11/15/11
jered [dot] wells [at] duke [dot] edu
To Search:
File list (Check if you may need any files):
license.txt
lorentzfit.m