MATLAB APPLICATION DEPLOYMENT - WEB EXAMPLE GUIDE Uživatelská příručka Strana 138

  • Stažení
  • Přidat do mých příruček
  • Tisk
  • Strana
    / 274
  • Tabulka s obsahem
  • ŘEŠENÍ PROBLÉMŮ
  • KNIHY
  • Hodnocené. / 5. Na základě hodnocení zákazníků
Zobrazit stránku 137
5 Controlling Code Generation
5-12
*/
void mlxGasket(int nlhs,
mxArray * plhs[],
int nrhs,
mxArray * prhs[]) {
mxArray * mprhs[1];
mxArray * mplhs[1];
int i;
/* ------------- Input Argument Processing ------------ */
if (nlhs > 1) {
mlfError(
mxCreateString(
"Run-time Error: File: gasket Line: 1 Column: "
"1 The function \"gasket\" was called with mor"
"e than the declared number of outputs (1)."),
NULL);
}
if (nrhs > 1) {
mlfError(
mxCreateString(
"Run-time Error: File: gasket Line: 1 Column: "
"1 The function \"gasket\" was called with mor"
"e than the declared number of inputs (1)."),
NULL);
}
for (i = 0; i < 1; ++i) {
mplhs[i] = NULL;
}
for (i = 0; i < 1 && i < nrhs; ++i) {
mprhs[i] = prhs[i];
}
for (; i < 1; ++i) {
mprhs[i] = NULL;
}
/* ---------------------------------------------------- */
mlfEnterNewContext(0, 1, mprhs[0]);
/* -------- Call to C Implementation Function --------- */
mplhs[0] = Mgasket(nlhs, mprhs[0]);
Zobrazit stránku 137
1 2 ... 133 134 135 136 137 138 139 140 141 142 143 ... 273 274

Komentáře k této Příručce

Žádné komentáře