fits n number of Gaussian peaks to xy data with automated peak detection (tweak minpeakheightm, minpeakwidth for better detection)
see also https://www.mathworks.com/matlabcentral/fileexchange/63748-fitnlorentzian-xydata--parameters-
how to use:
1. Download fitngaussian.m plus example data in 4peaksdata.dat (https://github.com/ebauch/matlab/blob/master/4peaksdata.dat)
2. In matlab run
% import xy data
xydata = load('4peaksdata.dat');
% fit data with n = 1,...,4 peaks
n = 3;
fitngaussian(xydata, n)
code is maintained at
인용 양식
Erik (2025). fitngaussian(xy, parameters) (https://kr.mathworks.com/matlabcentral/fileexchange/63771-fitngaussian-xy-parameters), MATLAB Central File Exchange. 검색 날짜: .
MATLAB 릴리스 호환 정보
플랫폼 호환성
Windows macOS Linux카테고리
- Signal Processing > Signal Processing Toolbox > Measurements and Feature Extraction > Descriptive Statistics >
태그
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!