Azzera filtri
Azzera filtri

How to take cross product of two 2D vector fields

69 visualizzazioni (ultimi 30 giorni)
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 = ?

Risposta accettata

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

Più risposte (0)

Categorie

Scopri di più su Get Started with MATLAB in Help Center e File Exchange

Prodotti


Release

R2020a

Community Treasure Hunt

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

Start Hunting!

Translated by