This FEX submission provides gaussfitn, a wrapper function that uses lsqcurvefit to fit the N-dimensional Gaussian (plus constant) model function,
Here A and D are unknown scalars, μ is an unknown Nx1 mean vector, and Σ is an unknown NxN covariance matrix. By imposing lower and upper bounds 0<=D<=0, this can also be used to perform pure Gaussian fitting. The submission also provides a helpful tool, namely gaussFcn, for post-plotting and assessing the fit.
See help documentation for gaussfitn() and gaussFcn() as well as the accompanying Examples.mlx for demonstrations of usage.
引用
Matt J (2026). gaussfitn (https://jp.mathworks.com/matlabcentral/fileexchange/69116-gaussfitn), MATLAB Central File Exchange. 取得日: .
MATLAB リリースの互換性
作成:
R2018a
R2016b 以降のリリースと互換性あり
プラットフォームの互換性
Windows macOS Linuxカテゴリ
- MATLAB > Mathematics > Numerical Integration and Differential Equations > Ordinary Differential Equations >
Help Center および MATLAB Answers で Ordinary Differential Equations についてさらに検索
タグ
謝辞
ヒントを得たファイル: 2D Rotated Gaussian Fit, Fit 2D gaussian function to data, Fit 2D Gaussian with Optimization Toolbox, Fit 1D and 2D gaussian to noisy data
| バージョン | 公開済み | リリース ノート | |
|---|---|---|---|
| 1.1.3 | *Added gaussFcn() to the package, for obtaining the fit as an anonymous function
|
||
| 1.1.2 | Typo correction |
||
| 1.1.1 | Small fix to the improved mu0/sig0 estimation method |
||
| 1.1.0 | Improved initial guesses of mu0 and sig0. |
||
| 1.0.2 | No change |
||
| 1.0.1 | Description modification |
||
| 1.0.0 |
