gcat - Global concatenation

Syntax

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

Description

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

Xs = gcat(X, dim) concatenates the variant arrays X from each lab in the dim-th dimension.

Examples

With four labs,

Xs = gcat(labindex)

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

See Also

cat MATLAB® function reference page

gop, labindex, numlabs

  


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