Number of elements in an array
(Quaternion and octonion overloadings of standard MATLAB® function)
Y = numel(X)
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.