Main Content

isdistributed

True for distributed array

Syntax

tf = isdistributed(X)

Description

tf = isdistributed(X) returns true for a distributed array, or false otherwise. For a description of a distributed array, see Nondistributed Versus Distributed Arrays.

Examples

With a running parallel pool,

L = ones(100,1);
D = ones(100,1,'distributed');
isdistributed(L) % returns false
isdistributed(D) % returns true

Version History

Introduced in R2006b