MATLAB APPLICATION DEPLOYMENT - WEB EXAMPLE GUIDE Guida Utente Pagina 341

  • Scaricare
  • Aggiungi ai miei manuali
  • Stampa
Vedere la pagina 340
operator <type>() const
Purpose Fetch single scalar value from array
C++
Syntax
#include "mclcppclass. h"
double data[4] = {1.0, 2.0, 3.0, 4.0};
double x;
mwArray a(2, 2, mxDOUBLE_CLASS);
a.SetData(data, 4);
x = (double)a(1,1); // x = 1.0
x = (double)a(1,2); // x = 3.0
x = (double)a(2,1); // x = 2.0
x = (double)a(2,2); // x = 4.0
Arguments None
Return
Value
A single s calar value from the array.
Description Use this operator to fetch a single scalar value. This operator is
overloaded for all numeric and log ical types.
C-87
Vedere la pagina 340
1 2 ... 336 337 338 339 340 341 342 343 344 345 346 ... 353 354

Commenti su questo manuale

Nessun commento