Concatenate multiple fi
objects horizontally
concatenates C
= horzcat(A1,A2,…An
)A1,A2,…,An
horizontally.
horzcat
is equivalent to using square brackets for horizontally
concatenating arrays. For example, [A,B]
or [A B]
is
equal to horzcat(A,B)
when A
and B
are compatible arrays.
Note
The fimath
and numerictype
properties of a
concatenated matrix of fi
objects, C
, are taken
from the leftmost fi
object in the list
A1,A2,…,An
.
Horizontal and vertical concatenation can be combined together, as in [1 2;3
4]
.
The matrices in a concatenation expression can themselves be formed via a
concatenation, as in [a b;[c d]]
.
[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
.
When concatenating an empty array to a nonempty array, horzcat
omits the empty array in the output. For example,
horzcat(fi([1 2]),[])
ans = 1 2 DataTypeMode: Fixed-point: binary point scaling Signedness: Signed WordLength: 16 FractionLength: 13