Does MCC exclude 'csaps' function when generating standalone executable
조회 수: 2 (최근 30일)
이전 댓글 표시
Hi all,
I have a C program written as mex file and use the Matlab csaps function in it. When I call the corresponding mexfunction, I get an error "Undefined function 'csaps' for input arguments of type 'double'". This happens when I generate a standalone executable using Matlab R2015a (v 8.5). However, if I use Matlab R2013b to generate the executable, the procedure containing 'csaps' function is not recognized and the error is "Invalid MEX-file, Path/to/file: The specified procedure could not be found".
Could you please help me or direct me to the proper documentation with relevant updates.
-- Thanks, Ram.
댓글 수: 0
채택된 답변
Walter Roberson
2015년 9월 14일
csaps is part of the Curve Fitting Toolbox. You need to have that licensed on the system you are using the MATLAB Compiler on.
You did not mention how you are invoking the MATLAB compiler. You might have to specifically mention csaps on the command line.
댓글 수: 0
추가 답변 (2개)
Steven Lord
2015년 9월 14일
The Compiler Support table indicates that command-line functionality in Curve Fitting Toolbox is supported for use with MATLAB Compiler, so I would expect this to work if you were calling it from MATLAB code. But you're using mexCallMATLAB to invoke csaps from your MEX-file, correct?
In that case, I believe you're essentially running into the "Fixing Callback Problems: Missing Functions" section on the Troubleshooting page and explicitly adding csaps to your application may work. [I've never tried this, so I can't be certain that it will work.] I would try that and contact Technical Support for further advice if it doesn't.
참고 항목
카테고리
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!