How to take cross product of two 2D vector fields

92 vues (au cours des 30 derniers jours)
Luqman Saleem
Luqman Saleem le 15 Mai 2021
Commenté : Luqman Saleem le 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 = ?

Réponse acceptée

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

Plus de réponses (0)

Catégories

En savoir plus sur Get Started with MATLAB dans Help Center et File Exchange

Produits


Version

R2020a

Community Treasure Hunt

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

Start Hunting!

Translated by