Error when using: parmHat = wblfit(x)

조회 수: 1 (최근 30일)
krist oim
krist oim 2022년 9월 8일
답변: Jeff Miller 2022년 9월 9일
Have attached the 52705x1 double I used. Getting the following error messages and don't understand as to why:
Error using fzero (line 214)
Second argument must be finite.
Error in evfit (line 192)
[sigmahat, lkeqnval, err] = fzero(@lkeqn, bnds, options, x0, freq, wgtmeanUnc);
Error in wblfit (line 80)
parmhatEV = evfit(log(x),alpha,censoring,freq,options);
  댓글 수: 2
Image Analyst
Image Analyst 2022년 9월 8일
Evidently bnds is infinite. What value(s) does it have? Let me know after you've watched this:
krist oim
krist oim 2022년 9월 8일
I can not answer that as I don't know and I've just used the function wblfit(x) incorporated in matlab

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

답변 (1개)

Jeff Miller
Jeff Miller 2022년 9월 9일
The problem is that your x vector has some nan's in it, and wblfit can't handle those. Try
y = x(~isnan(x));
parmHat = wblfit(y)
% parmHat =
% 10.09 2.1733

Community Treasure Hunt

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

Start Hunting!

Translated by