How to take cross product of two 2D vector fields

110 views (last 30 days)
I have 2 vector fields say and . I want to calculate cross product of A and B . I have 2D matrices of and .
i.e.
clear; clc;
% A = (Ax, Ay); B = (Bx, By);
Ax = rand(10,10);
Ay = rand(10,10);
Bx = rand(10,10);
By = rand(10,10);
% how to calculate A X B = ?

Accepted Answer

Matt J
Matt J on 15 May 2021
result(:,:,3)=Ax.*By-Ay.*Bx;

More Answers (0)

Categories

Find more on Get Started with MATLAB in Help Center and File Exchange

Products


Release

R2020a

Community Treasure Hunt

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

Start Hunting!