Skip to Main Content Skip to Search
Product Documentation

isaUnderlying - True if distributed array's underlying elements are of specified class

Syntax

TF = isaUnderlying(D, 'classname')

Description

TF = isaUnderlying(D, 'classname') returns true if the elements of distributed or codistributed array D are either an instance of classname or an instance of a class derived from classname. isaUnderlying supports the same values for classname as the MATLAB isa function does.

Examples

N = 1000;
D_uint8  = distributed.ones(1, N, 'uint8');
D_cell   = distributed.cell(1, N);
isUint8  = isaUnderlying(D_uint8, 'uint8') % returns true
isDouble = isaUnderlying(D_cell, 'double') % returns false

See Also

isa

  


Free Parallel Computing Interactive Kit

See how to solve large problems with minimal effort and reduce simulation time.

Get free kit

Trials Available

Try the latest versions of parallel computing products.

Get trial software
 © 1984-2012- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS