Error in lbfgsAdd (line 21): lbfgsAddC(​y,s,Y,S,ys​,int32(lbf​gs_end)) -- Unrecognized function or variable 'lbfgsAddC'

조회 수: 4 (최근 30일)
Running the code from lbfgsAdd.m and I get the error bfgsAdd (line 21): lbfgsAddC(y,s,Y,S,ys,int32(lbfgs_end)) -- Unrecognized function or variable 'lbfgsAddC'. How do I solve this?
  댓글 수: 4
Torsten
Torsten 2024년 1월 13일
편집: Torsten 2024년 1월 14일
Can't you do what is suggested in my above link:
solve it with modifying ex1a_linreg.m line 46 to
options = struct('useMex',0);
?
In this case, MATLAB will just use the .m file, not the mex-file.

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

채택된 답변

Julia Gorman
Julia Gorman 2024년 1월 14일
이동: Angelo Yeo 2024년 1월 28일
I ended up solving this by running mex lbfgsAddC.c and then moving the output of that to the same folder as lbfgsAdd.m and it worked. Thanks for the help though!

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Introduction to Installation and Licensing에 대해 자세히 알아보기

제품

Community Treasure Hunt

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

Start Hunting!

Translated by