Need to restart Matlab after creating a .h file to compile a .mex file using it

1 visualizzazione (ultimi 30 giorni)
Hello, I have a mex function that uses a .h file containing some definitions of constants and parameters. This file is created via a .m script. When I run that script and then try to compile the mex function I get an error message saying that the .h file was not found (although I can see that it was succesfully created in the work directory).
If I then restart Matlab and try to compile again, everithing works just fine.
Anybody could help me to solve that?
Thanks.

Risposta accettata

Walter Roberson
Walter Roberson il 29 Feb 2012
Possibly the file has not been fclose()'d.
Or possibly you need something such as
clear mex
I am guessing about it being "mex" that has to be cleared.

Più risposte (0)

Categorie

Scopri di più su MATLAB Compiler in Help Center e File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by