Apply a function to each element of an array
(Quaternion and octonion overloadings of standard MATLAB® function)
Y = arrayfun(f, X)
Only one calling syntax is at present implemented (as above). The function handle f identifies a function which must work with a single quaternion or octonion parameter and return a single quaternion or octonion result. This function is appled to every element of X to yield the corresponding element of the result Y which will have the same size as X.