Documentation

This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English verison of the page.

Note: This page has been translated by MathWorks. Please click here
To view all translated materals including this page, select Japan from the country navigator on the bottom of this page.

Quaternion Modulus

Calculate modulus of quaternion

Library

Utilities/Math Operations

Description

The Quaternion Modulus block calculates the magnitude for a given quaternion.

The quaternion has the form of

q=q0+iq1+jq2+kq3.

The quaternion modulus has the form of

|q|=q02+q12+q22+q32

Inputs and Outputs

InputDimension TypeDescription

First

Quaternion or vectorContains quaternions in the form of [q0, r0, ..., q1, r1, ... , q2, r2, ... , q3, r3, ...].

OutputDimension TypeDescription

First

Quaternion modulus or vectorContains quaternion modulus or vector of quaternion modulus in the form of [|q|, |r|, ...].

References

Stevens, Brian L., Frank L. Lewis, Aircraft Control and Simulation, Wiley–Interscience, 2nd Edition.

Introduced before R2006a

Was this topic helpful?