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 (2026). n-dimensional cross product of vectors (https://kr.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 |
