MATLAB APPLICATION DEPLOYMENT - WEB EXAMPLE GUIDE Betriebsanweisung Seite 335

  • Herunterladen
  • Zu meinen Handbüchern hinzufügen
  • Drucken
  • Seite
    / 354
  • Inhaltsverzeichnis
  • FEHLERBEHEBUNG
  • LESEZEICHEN
  • Bewertet. / 5. Basierend auf Kundenbewertungen
Seitenansicht 334
void SetData(<numeric-type>* buffer, m wSize le n)
Purpose Copy data from supplie d numeric buf fe r i nto array
C++
Syntax
#include "mclcppclass. h"
double rdata[4] = {1.0, 2.0, 3.0, 4.0};
double data_copy[4] ;
mwArray a(2, 2, mxDOUBLE_CLASS);
a.SetData(rdata, 4);
a.GetData(data_copy, 4);
Arguments buffer
Buffer containing data to copy
len
Maximum length of buffer. A maximum of len elements will be
copied.
Return
Value
None
Description Valid types for <numeric-type> are mxDOUBLE_CL ASS, mxSINGLE_ CLASS,
mxINT8_CLASS, mxUINT8 _CLASS, mxINT16_CLASS, mxUINT16_CLASS,
mxINT32_CLASS, mxUINT32_CLASS, mxINT64_CLASS,and
mxUINT64_CLASS. The data is copied in column-maj or order. If the
underlying array is not of the same type as the input buffer, the data is
convertedtothistypeasitiscopied. Ifaconversioncannotbemade,
an
mwException is thrown.
C-81
Seitenansicht 334
1 2 ... 330 331 332 333 334 335 336 337 338 339 340 ... 353 354

Kommentare zu diesen Handbüchern

Keine Kommentare