필터 지우기
필터 지우기

Error: Unrecognized function or variable 'fitscore'.

조회 수: 2 (최근 30일)
Bethany
Bethany 2022년 10월 10일
편집: Prateek 2022년 10월 15일
Hi!
I am new to MatLab and I am trying to get the AIC, CAIC, SBC, and ICOMP for different distributions. Here is my code for the normal disturbution as an example (I have seven differnt distributions). I have already generated NLOGL1, PHAT1, AVAR1, and n.
[aic, caic, sbc, icomp] = fitscore(NLOGL1, PHAT1, AVAR1,n);
res_row = [aic, caic, sbc, icomp];
res = res_row;
However, I get this error: Unrecognized function or variable 'fitscore'.
Any ideas of why this could be happening? I have the curve fitting toolbox already so I know that isn't the issue.
Thank you!
  댓글 수: 1
Walter Roberson
Walter Roberson 2022년 10월 10일
Could you link to the documentation page for fitscore? I am unable to find a function with that name.

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

답변 (1개)

Prateek
Prateek 2022년 10월 14일
편집: Prateek 2022년 10월 15일
Hi Bethany,
The function ‘fitscore’ is not a MATLAB function. It is likely to be a user-defined function. Please ensure that the file with this function is on the MATLAB path before executing your code. This would eliminate the error (Unrecognized function or variable 'fitscore').
If this error continues to be reported, please post the relevant code here so I can dig deeper into it.
Regards,
Prateek.

제품


릴리스

R2022a

Community Treasure Hunt

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

Start Hunting!

Translated by