How to take cross product of two 2D vector fields

103 Ansichten (letzte 30 Tage)
Luqman Saleem
Luqman Saleem am 15 Mai 2021
Kommentiert: Luqman Saleem am 17 Mai 2021
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 = ?

Akzeptierte Antwort

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

Weitere Antworten (0)

Produkte


Version

R2020a

Community Treasure Hunt

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

Start Hunting!

Translated by