How can I find the values for Settting Start Points when fitting point to a curve?
Mostra commenti meno recenti
Hello:
I'm trying to fit some points
NUMBERof = transpose([8 12 36 37 15 152 21 182 107 169 235 324 394 ...
462 545 707 655 769 832 838 812 849 864 950 932 879 604 637 743 ...
757 683 605 510 619 517 567 523 551 585 565 410 399 430 435 440 ...
367 378]);
DAY = transpose(1:length(NUMBERof));
with a Gaussian model:
fittype('a1*exp(-((x-b1)/c1)^2) + a2*exp(-((x-b2)/c2)^2) + a3*exp(-((x-b3)/c3)^2)',...
'dependent',{'y'},...
'independent',{'x'},...
'coefficients', {'a1','b1','c1','a2','b2','c2','a3','b3','c3'});
myprevof = fit(DAY, NUMBERof,...
'a1*exp(-((x-b1)/c1)^2) + a2*exp(-((x-b2)/c2)^2) + a3*exp(-((x-b3)/c3)^2)',...
'start',[175 20 1 550 15 5 550 30 15]);
As you can see I've choosed a set of starting points (and I've tried several more) for the fitting, but the curve I always get is very bad.

I'd like to know if there's a method to calculate the better (or at least a good one) value for Star Points, and what is "Start Point" meaning to understand better the fitting.
Thank you in advance for your help.
Sergio.
Risposta accettata
Più risposte (0)
Categorie
Scopri di più su Linear Predictive Coding in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!


