User`s guide
Using Class Methods
Methods to Use on Sparse MWLogicalArrays
Use these methods to return information on sparse arrays of type
MWLogicalArray. All are inherited from class MWArray.
Method Description
“isSparse” on page
4-55
Tests whether the a rray is sparse.
“columnIndex” on page
4-56
Returns an array containing the column index of
each nonzero element in the underlying MATLAB
array.
“rowIndex” on page
4-57
Returns an array containing the row index of each
nonzero e lement in the underlying MATLAB array.
“maximumNonZeros”
on page 4-57
Returns the allocated capacity of a sparse array.
If the underlying array is nonsparse, this m ethod
returns the same value as
numberOfElements().
“numberOfNonZeros”
on page 4-58
Returns the number of nonzero elements in
a sparse array. If the underlying array is
nonsparse, this method returns the sam e value as
numberOfElements().
MWLogicalArray inherits all the above methods from the MWArray class.
Using MWCharArray
This section cov ers the following topics:
• “Constructing an MWCharArray” on page 4-108
• “Methods to Create and Destroy an MWCharArray” on page 4-109
• “Methods to Return Information About an MWCharArray” on page 4-111
• “Meth od s to Get and Set Data in the MWCharA rray” on page 4-112
• “Methods to Copy, Convert, and Compare MWCharArrays” on page 4-116
4-107