Documentation

This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English verison of the page.

Note: This page has been translated by MathWorks. Please click here
To view all translated materals including this page, select Japan from the country navigator on the bottom of this page.

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 worker in the second dimension. The result is replicated on all workers.

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

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

Examples

With four workers,

Xs = gcat(labindex)

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

See Also

| | |

Introduced in R2006b

Was this topic helpful?