Download MATLAB Compiler User`s Guide
Transcript
5 Controlling Code Generation informs the MATLAB Compiler that the specified function(s) will be called through an feval call or through a MATLAB function that accepts a function to feval as an argument (e.g., fmin or the ode solvers). Without this pragma, the –h option will not be able to locate and compile all M-files used in your application. If you are using the %#function pragma to define functions that are not available in M-code, you must write a dummy M-function that identifies the number of input and output parameters to the M-file function with the same name used on the %#function line. 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 input and output variables. Therefore, you need to provide a dummy M-function that contains a function line, such as: function y = myfunctionwritteninc( a, b, c ); and includes the %#external pragma. This statement indicates that the function takes three inputs (a, b, c) and returns a single output variable (y). No other lines need to be present in the M-function. 5-66
Related documents
MATLAB APPLICATION DEPLOYMENT - WEB EXAMPLE GUIDE User`s guide
MATLAB Compiler User`s Guide
MATLAB APPLICATION DEPLOYMENT - WEB EXAMPLE GUIDE User`s guide
User's guide T-matrix program based on the null-field
Sega Saturn Technical Bulletin #51
PEAXACT Application Server - User Manual
MATLAB Compiler
mcc - Parent Directory
MATLAB C Math Library 2.0 User's Guide
MATLAB BUILDER JA 2 User`s guide