| MATLAB Compiler | ![]() |
operator <type>() const
Fetch single scalar value from array. This operator is overloaded for all numeric and logical types.
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
Return value
A single scalar value from the array.
Description
Use this operator to fetch a single scalar value.
| mwArray& operator=(const <type>& x) | static mwArray Deserialize(const mwArray& arr) | ![]() |
© 1994-2005 The MathWorks, Inc.