Length of vector(Quaternion and octonion overloadings of standard MATLAB® function)
Y = length(X)
length(X) returns the number of quaternion elements in the vector X.
>> q = randq(7,1) q = 7x1 quaternion array >> length(q) ans = 7
License terms.