MATLAB Compiler    
%#function

feval pragma

Syntax

Description

This pragma informs the MATLAB Compiler 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 set of functions when using the -h option.

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:

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 input and output variables. Therefore, you need to provide a dummy M-function that contains a function line and a %#external pragma, such as

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.


  %#external %#mex