How to multiply a matrix with a quaternion

5 次查看(过去 30 天)
Hi, I got a problem while performing image encryption using quaternions. In that, I need to perform a multiplication q.B.(q^-1) where q is a quaternion and q^-1 is quaternion inverse and B is a square matrix of size 363X363. How to perform this multiplication using matlab? Moreover I need to repeat this multiplication in a for loop. Awaiting your suggestions. Thank you in advance.
  1 个评论
James Tursa
James Tursa 2016-4-6
The operation you describe isn't defined. First, the formulation as you have written it q.B.(q^-1) leads me to believe that the . multiply is a quaternion multiply and not a matrix multiply. I.e., you intend this to be a rotation of B. But for this to make sense to me, B would need to be a quaternion or a vector, not a large matrix. So I am confused as to what you want. Can you elaborate?

请先登录,再进行评论。

回答(0 个)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by