| MATLAB Compiler | ![]() |
void SetCharData(mxChar* buffer, int len)
Copy data from supplied mxChar buffer into array.
C++ syntax
#include "mclcppclass.h" mxChar data[6] = {'H', 'e' , `l' , 'l' , 'o' , '\0'}; mxChar data_copy[6] ; mwArray a(1, 6, mxCHAR_CLASS); a.SetData(data, 6); a.GetData(data_copy, 6);
Arguments
buffer. Buffer containing data to copy.
Maximum length of buffer. A maximum of len elements will be copied.
Return value
Description
The data is copied in column-major order. If the underlying array is not of type mxCHAR_CLASS, the data is converted to this type as it is copied. If a conversion cannot be made, an mwException is thrown.
| void SetLogicalData(mxLogical* buffer, int len) | mwArray operator()(int i1, int i2, int i3, ..., ) | ![]() |
© 1994-2005 The MathWorks, Inc.