Convert quaternion to different underlying data type
Y = convert(q, t)
convert(q, t) converts the components of a quaternion to a different data type. By default, the components of a quaternion have the default MATLAB® data type double. The cast function implements the same functionality, and is to be preferred since it overloads a standard MATLAB® function. Convert is retained for compatibility with code written before the cast function was implemented.