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.
댓글 수: 0
채택된 답변
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 Center 및 File Exchange에서 MATLAB Compiler에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!