MATLAB COMPILER RELEASE NOTES Guide de l'utilisateur Page 184

  • Télécharger
  • Ajouter à mon manuel
  • Imprimer
  • Page
    / 264
  • Table des matières
  • DEPANNAGE
  • MARQUE LIVRES
  • Noté. / 5. Basé sur avis des utilisateurs
Vue de la page 183
%#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.
Vue de la page 183
1 2 ... 179 180 181 182 183 184 185 186 187 188 189 ... 263 264

Commentaires sur ces manuels

Pas de commentaire