(Not recommended) True if distributed array's underlying elements are of specified class

isaUnderlying is not recommended. Use isUnderlyingType instead. For more information, see Compatibility Considerations.


TF = isaUnderlying(D, 'classname')


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.


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

Compatibility Considerations

expand all

Not recommended starting in R2020b

Introduced in R2010a