isa - True if object is of specified class

Syntax

tf = isa(X, 'codistributed')

Description

tf = isa(X, 'codistributed') returns true if X is a codistributed array, or false otherwise. For a description of a codistributed array, see Array Types.

Examples

L = ones(100, 1)
D = ones(100, 1, codistributor())
tf = isa(L, 'codistributed') % returns false
tf = isa(D, 'codistributed') % returns true

See Also

isa MATLAB function reference page

codistributed, codistributor, zeros

  


 © 1984-2009- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS