| MATLAB Compiler | ![]() |
void GetLogicalData(mxLogical* buffer, int len) const
Copy array's data into supplied mxLogical buffer.
C++ syntax
#include "mclcppclass.h" mxLogical data[4] = {true, false, true, false}; mxLogical data_copy[4] ; mwArray a(2, 2, mxLOGICAL_CLASS); a.SetData(data, 4); a.GetData(data_copy, 4);
Arguments
buffer. Buffer to receive copy.
len. 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 mxLOGICAL_CLASS, the data is converted to this type as it is copied. If a conversion cannot be made, an mwException is thrown.
| void GetData(<numeric-type>* buffer, int len) const | void GetCharData(mxChar* buffer, int len) const | ![]() |
© 1994-2005 The MathWorks, Inc.