Quaternion Function Reference

horzcat

Horizontal concatenation
(Quaternion and octonion overloadings of standard MATLAB® function)

Syntax

Y = horzcat(A, B, C, ....)

Description

horzcat overloads a fundamental MATLAB® operation for quaternion arrays in order to make possible concatenation operations using the MATLAB® square bracket notation. It is not normally called directly as a function.

Quaternion arrays may be concatenated with non-quaternion arrays provided the non-quaternion arrays are numeric. The non-quaternion arrays will be converted to quaternion arrays by supplying a zero vector part.

Examples

The example below shows explicit and implicit calls to the function, both of which will work. On the right hand side, MATLAB® calls the function implicitly in order to implement the concatenation of quaternion operands.
>> horzcat(qi, qj, qk) == [qi qj qk]

ans =  1     1     1

See Also

QTFM function: vertcat
MATLAB® function: horzcat

© 2008-2013 Stephen J. Sangwine and Nicolas Le Bihan

License terms.