User`s guide

%#function
7-6
7%#function
Purpose feval pragma.
Syntax %#function <function_name-list>
Description This pragma informs the MATLAB Compile r that the specified function(s) will
be called through an
feval, eval, or handle graphics callback. You need to
specify this pragma only to assist the Compiler in locating and automatically
compiling the se t o f functions when using the
-h option.
If you are using the
%#function pragma to define functions that are not
available in M-code, you s hould use the
%#external pragma to define the
function. For example,
%#function myfunctionwritteninc
This implies that myfunctionwritteninc is an M-function that will be called
using
feval. The Compiler will look up this function to determine the correct
number of inputand output variables. Therefore,you needtoprovideadummy
M-function t hat contains a function line and a
%#external pragma, such as
function y = myfunctionwritteninc( a, b, c );
%#external
The function statement indicates that the function takes three inputs (a, b, c)
and returns a single output variable (
y). No additional lines need to be present
in the M-file.