hoe to estimate the coefficients from curve fitting?

조회 수: 1 (최근 30일)
AS
AS 2019년 6월 26일
댓글: Walter Roberson 2019년 6월 26일
I have 467 number of signal and each one is representing gaussian distribution. Matrix size is 63 by 467. I want to find out the coefficients for distribution by fitting 'gauss3'. I want to do this only by writing code not by toolbox. But I am unablae to to do this. Kindly help me regarding this.
clc;
clear all;
close all;
load amp_02_01A_compressed.dat;
load tt_02.dat;
t=tt_02(1:63,1); % time
am=amp_02_01A_compressed; % amplitude
am=am';
for i=1:63
for j=1:467
am_norm(i,j)=(am(i,j)/(max(am(j))));
curvefit=fit(t(i,1).',am_norm(i,j).','gauss3');
end
end
  댓글 수: 1
Walter Roberson
Walter Roberson 2019년 6월 26일
Fitting sum of gaussians is difficult to get right. It is much more common than not that you will get wrong answers unless you start very close to the right parameters. You should research techniques for fitting sum of gaussians specifically, instead of writing general curve fitting code.

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

Help CenterFile Exchange에서 Linear and Nonlinear Regression에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by