MATLAB: Coder.extrinsic

coder.extrinsic

every time i try to convert some matlab file using any pre-defined functions in between i am instructed by code generation report error of matlab coder 2.0 @MATLAB Ra2011 that i should call function using "coder.extrinsic('function name')
is it necessary to call every time?

Best Answer

Yes, it is necessary to declare functions unsupported for code generation using coder.extrinsic. See Calling MATLAB Functions in the MATLAB Coder documentation for further explanation. Note that you should not use extrinsic function calls if you are generating standalone C/C++ code. This is meant for generating MEX-functions from MATLAB code, where all extrinsic calls are actually dispatched to the MATLAB interpreter.
Related Question