n-dimensional cross product of vectors

バージョン 1.0.0 (1.56 KB) 作成者: Peter Krammer
Function calculates vector which is cross product of input column vectors. It supports calculation in n-dimensional space.
ダウンロード: 0
更新 2025/5/11

ライセンスの表示

Function calculates vector which is cross product of input column vectors. It supports calculation in n-dimensional space.
Input vectors are represented in matrix form. Number of vectors must be n-1, where n is number of dimensions of space.
example 1:
>> x = [1 2 4; 2 4 5; 6 0 0; 4 2 0] % 3 column vectors in 4d space
>> y = nDimCrossProduct(x)
y =
60
-48
-18
36
example 2: (if you prefer working with row-vectors)
>> data = [2 4 5; 1 4 0]
>> nDimCrossProduct(data')'
ans =
[ -20, 5, 4 ]

引用

Peter Krammer (2025). n-dimensional cross product of vectors (https://jp.mathworks.com/matlabcentral/fileexchange/181122-n-dimensional-cross-product-of-vectors), MATLAB Central File Exchange. に取得済み.

MATLAB リリースの互換性
作成: R2022b
すべてのリリースと互換性あり
プラットフォームの互換性
Windows macOS Linux
タグ タグを追加

Community Treasure Hunt

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

Start Hunting!
バージョン 公開済み リリース ノート
1.0.0