| MATLAB Compiler | ![]() |
mwArray& operator=(const <type>& x)
Assign single scalar value to array. This operator is overloaded for all numeric and logical types.
C++ syntax
#include "mclcppclass.h" mwArray a(2, 2, mxDOUBLE_CLASS); a(1,1) = 1.0; // assigns 1.0 to element (1,1) a(1,2) = 2.0; // assigns 2.0 to element (1,2) a(2,1) = 3.0; // assigns 3.0 to element (2,1) a(2,2) = 4.0; // assigns 4.0 to element (2,2)
Arguments
Return value
A reference to the invoking mwArray.
Description
Use this operator to set a single scalar value.
| mwArray operator()(const char* name, int i1, int i2, int i3, ..., ) | operator <type>() const | ![]() |
© 1994-2005 The MathWorks, Inc.