Filter löschen
Filter löschen

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

1 Ansicht (letzte 30 Tage)
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 Kommentare
Torsten
Torsten am 13 Jan. 2024
Bearbeitet: Torsten am 14 Jan. 2024
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.

Melden Sie sich an, um zu kommentieren.

Akzeptierte Antwort

Julia Gorman
Julia Gorman am 14 Jan. 2024
Verschoben: Angelo Yeo am 28 Jan. 2024
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!

Weitere Antworten (0)

Kategorien

Mehr zu Write C Functions Callable from MATLAB (MEX Files) finden Sie in Help Center und File Exchange

Produkte

Community Treasure Hunt

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

Start Hunting!

Translated by