tform2quat
同次変換から四元数を抽出
説明
例
同次変換から四元数を抽出
tform = [1 0 0 0; 0 -1 0 0; 0 0 -1 0; 0 0 0 1]; quat = tform2quat(tform)
quat = 1×4
0 1 0 0
入力引数
tform
— 同次変換
4×4×n の行列
同次変換。n 個の同次変換からなる 4×4×n の行列として指定します。入力の同次変換は、変換について左から掛ける形式になっている必要があります。
例: [0 0 1 0; 0 1 0 0; -1 0 0 0; 0 0 0 1]
出力引数
quat
— 単位四元数
n 行 4 列の行列
単位四元数。n 個の四元数を含む n 行 4 列の行列として返されます。各行が 1 つの四元数であり、q = [w x y z] の形式をとります。ここで、w はスカラー数です。
例: [0.7071 0.7071 0 0]
拡張機能
C/C++ コード生成
MATLAB® Coder™ を使用して C および C++ コードを生成します。
バージョン履歴
R2015a で導入
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)