Quaternion Function Reference

numel

Number of elements in an array
(Quaternion and octonion overloadings of standard MATLAB® function)

Syntax

Y = numel(X)

Description

numel(X) returns the number of quaternions or octonions in an array, just as the corresponding built-in MATLAB® function does for other types.

There is a complex history to this function, which is relevant only to code developed with versions of QTFM prior to 2.4 and versions of MATLAB® prior to R2015b, when a new function numArgumentsFromSubscript was introduced into MATLAB®. See the notes in the quaternion (not octonion) source file for information about this.

See Also

MATLAB® function: numel
QTFM functions: prod, size

(c) 2008-2016 Stephen J. Sangwine and Nicolas Le Bihan

License terms.