How can i calculate the cross product of two cell vectors?
조회 수: 4 (최근 30일)
이전 댓글 표시
Hello, I would like to calculate the cross product of two vectors which are inside a matrix. For example:
M=[ 2x2 cell 2x2cell
2x2 cell 2x2cell]
Each 2x2 cell=[1x3 cell 1x3 cell
1x3 cell 1x3 cell]
I want the cross product between two of these 1x3 cell
Thank you in advance.
댓글 수: 0
답변 (1개)
Kobye
2014년 5월 11일
Your question isn't written very clearly at all. Please take some time to clearly describe your problem and help the community answer your question.
Your cell array contains 2 cell arrays, which in turn contain 4 cell arrays. You state that you want to calculate a cross product between two of the latter. Which two specifically? We cannot read your mind. Also, are these 1x3 cell arrays the vectors that you want to cross multiply? If so, it seems logical to first convert them to a double array. You can then use the cross(A,B) function.
I recommend you read the help file for the cross function.
help cross
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Characters and Strings에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!