The quatprod(a,b) function returns the quaternion product of quaternions a and b. Here the inputs a and b are vectors of elements of quaternions respectively, e.g. a = [a0,a1,a2,a3] and b = [b0,b1,b2,b3]. It returns a vector of elements of the resulting quaternion f = [f0,f1,f2,f3]. Thus, a = a0+i*a1+j*a2+k*a3, b = b0+i*b1+j*b2+k*b3 and f = f0+i*f1+j*f2+k*f3.
Cite As
Aram Baghiyan (2023). quatprod(a,b) (https://www.mathworks.com/matlabcentral/fileexchange/49597-quatprod-a-b), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Created with
R2014b
Compatible with any release
Platform Compatibility
Windows macOS LinuxCategories
Find more on Quaternion Math in Help Center and MATLAB Answers
Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
Version | Published | Release Notes | |
---|---|---|---|
1.0 |
|