Nonlinear fitting n-dimensional data with arbitrary functions

버전 1.0.0.0 (34.4 KB) 작성자: Jan Keller
Demonstrates the abilities of Matlab functions lsqcurvefit, fmincon and fminsearch to fit complex mo
다운로드 수: 4.1K
업데이트 날짜: 2008/7/23

라이선스 보기

How to fit a 2D Gaussian function to noisy data in Matlab? Or data with another number of dimensions and arbitrary fit function?

It took me a while to find out how Matlab does this by the functions lsqcurvefit, fmincon or fminsearch. This project demonstrates how to use these functions to fit ND data with ND functions. Several tests are compiled in the file fit_test.m. Reading and trying out this file will explain a lot.

fit_nl.m and fit_nl_ex.m are written around the matlab functions lsqcurvefit/ fmincon/fminsearch. Additionally: parameters can be set fixed or some built-in functions (Gaussians, Lorentzians) can be used (see fit_func.m). However the set of built-in functions is pretty special.

fmincon/fminsearch can even be used to solve maximum likelihood parameter estimation problems other than for gaussian noise (least squares). An example is included for Poissonian noise in fit_nl_ex.m. Although this is often the case in imaging, this part is also quite special. If You have questions about these problems, ask here!

인용 양식

Jan Keller (2024). Nonlinear fitting n-dimensional data with arbitrary functions (https://www.mathworks.com/matlabcentral/fileexchange/20540-nonlinear-fitting-n-dimensional-data-with-arbitrary-functions), MATLAB Central File Exchange. 검색됨 .

MATLAB 릴리스 호환 정보
개발 환경: R2008a
모든 릴리스와 호환
플랫폼 호환성
Windows macOS Linux
카테고리
Help CenterMATLAB Answers에서 Nonlinear Optimization에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
버전 게시됨 릴리스 정보
1.0.0.0

Some bugs, better help, more comments, error checks, a better test routine and a little bit more features ... version 2.