MATLAB APPLICATION DEPLOYMENT - WEB EXAMPLE GUIDE Guida Utente Pagina 291

  • Scaricare
  • Aggiungi ai miei manuali
  • Stampa
Vedere la pagina 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
Vedere la pagina 290
1 2 ... 286 287 288 289 290 291 292 293 294 295 296 ... 353 354

Commenti su questo manuale

Nessun commento