User`s guide

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