User`s guide

%#mex
7-7
7%#mex
Purpose mex pragma
Syntax %#mex
Description This pragma informs the MATLAB Compiler to select the MEX-file over an
existing M-file.
If you are using the
%#function pragma to define functions that are not
available in M-code, you should use the
%#external pragma to define the
function. For example:
function y = gamma(x)
%#mex
error('gamma MEX-file is missing');