部分
四元数の各部分の抽出
説明
例
四元数を四元数の各部分の行列に変換
関数 parts
を使用して、四元数表現を各部分に変換します。
各部分を指定して、四元数の 2 要素の列ベクトルを作成します。
quat = quaternion([1:4;5:8])
quat = 2x1 quaternion array
1 + 2i + 3j + 4k
5 + 6i + 7j + 8k
関数 parts
を使用して、quaternion 行列から各部分を復元します。各部分は個別の出力引数として返され、それぞれが入力の四元数である 2 行 1 列のベクトルと同じサイズになります。
[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
入力引数
quat
— 四元数
quaternion
オブジェクト | quaternion
オブジェクトの配列
四元数。quaternion
オブジェクト、または任意の次元の quaternion
オブジェクトの配列として指定します。
出力引数
拡張機能
C/C++ コード生成
MATLAB® Coder™ を使用して C および C++ コードを生成します。
MATLAB コマンド
次の MATLAB コマンドに対応するリンクがクリックされました。
コマンドを MATLAB コマンド ウィンドウに入力して実行してください。Web ブラウザーは MATLAB コマンドをサポートしていません。
Select a Web Site
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a web site from the following list:
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Americas
- América Latina (Español)
- Canada (English)
- United States (English)
Europe
- Belgium (English)
- Denmark (English)
- Deutschland (Deutsch)
- España (Español)
- Finland (English)
- France (Français)
- Ireland (English)
- Italia (Italiano)
- Luxembourg (English)
- Netherlands (English)
- Norway (English)
- Österreich (Deutsch)
- Portugal (English)
- Sweden (English)
- Switzerland
- United Kingdom (English)