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

  • Stažení
  • Přidat do mých příruček
  • Tisk
  • Strana
    / 354
  • Tabulka s obsahem
  • ŘEŠENÍ PROBLÉMŮ
  • KNIHY
  • Hodnocené. / 5. Na základě hodnocení zákazníků
Zobrazit stránku 289
mwArray(mwSize num_rows, mwSize num_cols,
mxClassID mxID, mxComplexity cmplx = mxREAL)
Purpose Construct 2-D matrix of specified type and dimensions
C++
Syntax
#include "mclcppclass. h"
mwArray a(2, 2, mxDOUBLE_CLASS);
mwArray b(3, 3, mxSINGLE_CLASS, mxCOMPLEX );
mwArray c(2, 3, mxCELL_CLASS);
Arguments num_rows
The number of rows.
num_cols
The number of columns.
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 a matrix of the specified type and
complexity. For numeric types, the matrix can be either real or complex.
You can use any valid
mxClassID. Consult the External Interfaces
documentation for more information on
mxClassID. For numeric ty pes,
pass
mxCOMPLEX for the last argument to create a complex matrix. All
elements are initialized to zero. For cell matrices, all elements are
initialized to empty cells.
C-36
Zobrazit stránku 289
1 2 ... 285 286 287 288 289 290 291 292 293 294 295 ... 353 354

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

Žádné komentáře