Gaussian fitting with a bias

I want to fit a gaussian shape with a bias. Matlab has a type gauss1 = a1*exp(-((x-b1)/c1)^2), but how to fit the data with gauss1 = a1*exp(-((x-b1)/c1)^2)+ w0, where w0 is a bias.
Thanks.

답변 (1개)

the cyclist
the cyclist 2011년 7월 29일

0 개 추천

You can define your own function using the nlinfit() function in the Statistics Toolbox.

카테고리

도움말 센터File Exchange에서 Descriptive Statistics에 대해 자세히 알아보기

질문:

2011년 7월 29일

Community Treasure Hunt

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

Start Hunting!

Translated by