Skip to Main Content Skip to Search
Product Documentation

gcat - Global concatenation

Syntax

Xs = gcat(X)
Xs = gcat(X, dim)
Xs = gcat(X, dim, targetlab)

Description

Xs = gcat(X) concatenates the variant array X from each lab in the second dimension. The result is replicated on all labs.

Xs = gcat(X, dim) concatenates the variant array X from each lab in the dimension indicated by dim.

Xs = gcat(X, dim, targetlab) performs the reduction, and places the result into res only on the lab indicated by targetlab. res is set to [] on all other labs.

Examples

With four labs,

Xs = gcat(labindex)

returns Xs = [1 2 3 4] on all four labs.

See Also

cat | gop | labindex | numlabs

  


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