Borrar filtros
Borrar filtros

Unrecognized function or variable 'fpval'.

32 visualizaciones (últimos 30 días)
Samira Rahmati
Samira Rahmati el 27 de Jun. de 2024 a las 6:40
Comentada: Kojiro Saito el 27 de Jun. de 2024 a las 8:27
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

Respuestas (1)

Kojiro Saito
Kojiro Saito el 27 de Jun. de 2024 a las 7:06
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
/MATLAB/toolbox/stats/stats/private/fpval.m % Private to stats
If you cannot find fpval.m with "which -all", you need to reinstall Statistics and Machine Learning Toolbox again.
  4 comentarios
Samira Rahmati
Samira Rahmati el 27 de Jun. de 2024 a las 8:12
Yes it was solved with your help
Thank you very much🙏🏻
Kojiro Saito
Kojiro Saito el 27 de Jun. de 2024 a las 8: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

Iniciar sesión para comentar.

Categorías

Más información sobre AI for Wireless en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by