Erik Bauch, May 2017
- Download fitnlorentzian.m plus example data in 4peaksdata.dat (or clone repo)
- in matlab run
% import xy data
data = load('4peaksdata.dat');
% fit data with n = 1,...,4 peaks
n = 4;
fitnlorentzian(data, n)
this code on mathworks fileexchange
- Download fitngaussian.m plus example data in 4peaksdata.dat (or clone repo)
- in matlab run
% import xy data
data = load('4peaksdata.dat');
% fit data with n = 1,...,4 peaks
n = 4;
fitngaussian(data, n)
this code on mathworks fileexchange