Borrar filtros
Borrar filtros

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

1 visualización (últimos 30 días)
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 comentarios
Torsten
Torsten el 13 de En. de 2024
Editada: Torsten el 14 de En. de 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.

Iniciar sesión para comentar.

Respuesta aceptada

Julia Gorman
Julia Gorman el 14 de En. de 2024
Movida: Angelo Yeo el 28 de En. de 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!

Más respuestas (0)

Categorías

Más información sobre Write C Functions Callable from MATLAB (MEX Files) en Help Center y File Exchange.

Etiquetas

Productos

Community Treasure Hunt

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

Start Hunting!

Translated by