Documentation Center

  • Trial Software
  • Product Updates

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

See Also

Was this topic helpful?