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

  • 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 290
mwArray(mwSize num_dims, const mwSize* dims,
mxClassID mxID, mxComplexity cmplx = mxREAL)
Purpose Construct n-dimensional array of specified ty pe and dimensions
C++
Syntax
#include "mclcppclass. h"
int dims[3] = {2,3,4};
mwArray a(3, dims, mxDOUBLE_CLASS);
mwArray b(3, dims, mxSINGLE_CLASS, mxCOMP LEX) ;
mwArray c(3, dims, mxCELL_CLASS);
Arguments num_dims
Size of the dims array.
dims
Dimensions of the a rray.
mxID
The data type ty pe of the matrix.
cmplx
The complexity of the matrix (numeric types only).
Return
Value
None
Description Use this constructor to create an n-dimension al array of t he specif ied
type and complexity. For numeric types, the array can be either re al
or complex. You can use any valid
mxClassID. Consult the External
Interfaces documentation for more information on
mxClassID.For
numeric types, pass
mxCOMPLEX for the last argument to create a
complex matrix. All elements are initialized to zero. For cell arrays, all
elements are initialized to empty cells.
C-37
Vue de la page 290
1 2 ... 286 287 288 289 290 291 292 293 294 295 296 ... 353 354

Commentaires sur ces manuels

Pas de commentaire