MATLAB Answers

cross product of two arrays

3 views (last 30 days)
Turbulence Analysis
Turbulence Analysis on 14 Sep 2020
Edited: James Tursa on 15 Sep 2020
Hi,
I have two arrays AA, BB of size 17266 x 1. How to perform the cross product of both. I used cross (AA,BB), but it shoots "A and B must be of length 3 in the dimension in which the cross product is taken"

  4 Comments

Show 1 older comment
Turbulence Analysis
Turbulence Analysis on 14 Sep 2020
Hi, I Tried as cross (AA,BB,[17266,1]); but end up with (nargin == 3 && (size(a,dim)~=3 || size(b,dim)~=3))
Matt J
Matt J on 14 Sep 2020
There is no such thing as a cross-product between vectors that are not length 3. If you are working with some N-dimensional generalization of the term "cross-product", you must explain the terminology to us, because it is not standard.
James Tursa
James Tursa on 15 Sep 2020
What is the context? What are you using this calculation for? Maybe we can guide you to a correct calculation.

Sign in to comment.

Answers (0)

Community Treasure Hunt

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

Start Hunting!