Skip to Main Content Skip to Search
Product Documentation

horzcat - Horizontally concatenate multiple fi objects

Syntax

c = horzcat(a,b,...)
[a, b, ...]

Description

c = horzcat(a,b,...) is called for the syntax [a, b, ...] when any of a, b, ... , is a fi object.

[a b, ...] or [a,b, ...] is the horizontal concatenation of matrices a and b. a and b must have the same number of rows. Any number of matrices can be concatenated within one pair of brackets. N-D arrays are horizontally concatenated along the second dimension. The first and remaining dimensions must match.

Horizontal and vertical concatenation can be combined together as in [1 2;3 4].

[a b; c] is allowed if the number of rows of a equals the number of rows of b, and if the number of columns of a plus the number of columns of b equals the number of columns of c.

The matrices in a concatenation expression can themselves be formed via a concatenation as in [a b;[c d]].

See Also

vertcat

  


Free Early Verification Kit

Learn how to apply early verification to your development process through these technical resources.

How much time do you spend on testing to ensure implementation meets system-level requirements?

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