How to take cross product of two 2D vector fields

117 visualizaciones (últimos 30 días)
Luqman Saleem
Luqman Saleem el 15 de Mayo de 2021
Comentada: Luqman Saleem el 17 de Mayo de 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 = ?

Respuesta aceptada

Matt J
Matt J el 15 de Mayo de 2021
result(:,:,3)=Ax.*By-Ay.*Bx;

Más respuestas (0)

Categorías

Más información sobre Get Started with MATLAB en Help Center y File Exchange.

Productos


Versión

R2020a

Community Treasure Hunt

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

Start Hunting!

Translated by