MATLAB APPLICATION DEPLOYMENT - WEB EXAMPLE GUIDE Guide de l'utilisateur Page 159

  • Télécharger
  • Ajouter à mon manuel
  • Imprimer
  • Page
    / 354
  • Table des matières
  • DEPANNAGE
  • MARQUE LIVRES
  • Noté. / 5. Basé sur avis des utilisateurs
Vue de la page 158
MATLAB Compiler Generated Interface Functions
Note For C shared libraries, MATLAB Compiler generates the mlx and mlf
functions as described in this section. For C++ shared libraries, M ATLAB
Compiler generates the
mlx function the same way it does for the C shared
library. However, MATLAB Compiler generates a modified
mlf function with
these differences:
The
mlf before the function name is dropped to keep compatibility with R13.
The arguments to the function are
mwArray instead of mxArray.
mlx Interface Function
The function that begins with the prefix mlx takes the same type and number
of arguments as a MATLAB MEX-function. (See the External Interfaces
documentation for more details on MEX-functions.) The first argument,
nlhs,
is the number of output arguments, and the s econd argument,
plhs,isa
pointer to an array that the function will fill with the requested number of
return values. (The
lhs in these argument names is short for “left-hand
side” -- the output variables in a MATLAB e xpression are those on the
left-hand side of the assignment operator.) The third and fourth parameters
are the number of inputs and an array containing the input variables.
void mlxSierpinski(int nlhs, mxArray *pl hs[] , int nrhs,
mxArray *prhs[])
mlf Interface Function
The second of the g enerated functions begins with the prefix mlf.This
function expects its input and output arguments to be passed in as individual
variables rather than packed into arrays. If the function is capable of
producing one or more outputs, the first argument is the number of outputs
requested b y the caller.
void mlfSierpinski(int nargou t, mxArr ay** x, mxArray ** y,
mxArray* iterations, mxArray* draw)
7-29
Vue de la page 158
1 2 ... 154 155 156 157 158 159 160 161 162 163 164 ... 353 354

Commentaires sur ces manuels

Pas de commentaire