User`s guide

operator <type>() const
Purpose Fetch single scalar value from array
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 None
Return
Value
A single s calar value from the array.
Description Use this operator to fetch a single scalar value. This operator is
overloaded for all numeric and log ical types.
C-87