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

조회 수: 1 (최근 30일)
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.

채택된 답변

Walter Roberson
Walter Roberson 2012년 2월 29일
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.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 MATLAB Compiler에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by