Unrecognized function or variable 'fpval'.
조회 수: 4 (최근 30일)
이전 댓글 표시
Hello
Can you please guide me on how to fix the following error:
Unrecognized function or variable 'fpval'.
Error in stepwisefit>stepcalc (line 368)
pval = fpval(fstat,df0,dfe);
Error in stepwisefit (line 150)
[B,SE,PVAL,stats] = stepcalc(allx,y,in);
Error in newrobuststepwise (line 28)
[b,se,pval1,inmodel1,stats,nextstep,history] = stepwisefit(Xdata,Ydata);
I used a stepwise function whose parameter pval is one of its outputs
댓글 수: 0
채택된 답변
Kojiro Saito
2024년 6월 27일
fpval is a private function of Statistics and Machine Learning Toolbox and located in MATLAB_Install/toolbox/stats/stats/private/fpval.m.
which fpval -all
If you cannot find fpval.m with "which -all", you need to reinstall Statistics and Machine Learning Toolbox again.
댓글 수: 4
Kojiro Saito
2024년 6월 27일
Good news!
restoredefaultpath only resets MATLAB search path in this session. You need to do savepath to save the path for next session.
restoredefaultpath
savepath
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Measurements and Feature Extraction에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!