Error "NaN computed by model function." when try to fit a Gaussian to some data....

1 view (last 30 days)
Hello,
The full error msg is: ??? NaN computed by model function.
Error in ==> fit at 443 errstr = handleerr( errid, errmsg, suppresserr );
Error in ==> memory_analysis3 at 155 [ff,gof,out] = fit(x',y','gauss1');
Where, x = linspace(1,500,30); and y = hist(er1(:,kju+1),x); kju=kju+17; Thank you in advance.

Answers (0)

Community Treasure Hunt

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

Start Hunting!