MATLAB ヘルプ センター
Extract quaternion parts
Since R2023b
[a,b,c,d] = parts(quat)
[a,b,c,d] = parts(quat) returns the parts of the quaternion array as arrays, each the same size as quat.
[a,b,c,d]
quat
example
collapse all
Convert a quaternion representation to parts using the parts function.
parts
Create a two-element column vector of quaternions by specifying the parts.
quat = quaternion([1:4;5:8])
quat = 2×1 quaternion array 1 + 2i + 3j + 4k 5 + 6i + 7j + 8k
Recover the parts from the quaternion matrix using the parts function. The parts are returned as separate output arguments, each the same size as the input 2-by-1 column vector of quaternions.
[qA,qB,qC,qD] = parts(quat)
qA = 2×1 1 5
qB = 2×1 2 6
qC = 2×1 3 7
qD = 2×1 4 8
quaternion
Quaternion, specified as a quaternion object or an array of quaternion objects of any dimensionality.
Quaternion parts, returned as four comma-separated numeric arrays: a, b, c, and d. Each part is the same size as quat.
a
b
c
d
Data Types: single | double
single
double
expand all
Introduced in R2023b
classUnderlying
compact
You clicked a link that corresponds to this MATLAB command:
Run the command by entering it in the MATLAB Command Window. Web browsers do not support MATLAB commands.
Web サイトの選択
Web サイトを選択すると、翻訳されたコンテンツにアクセスし、地域のイベントやサービスを確認できます。現在の位置情報に基づき、次のサイトの選択を推奨します:
また、以下のリストから Web サイトを選択することもできます。
最適なサイトパフォーマンスの取得方法
中国のサイト (中国語または英語) を選択することで、最適なサイトパフォーマンスが得られます。その他の国の MathWorks のサイトは、お客様の地域からのアクセスが最適化されていません。
南北アメリカ
ヨーロッパ
アジア太平洋地域
最寄りの営業オフィスへのお問い合わせ