필터 지우기
필터 지우기

How to take cross product of two 2D vector fields

조회 수: 69 (최근 30일)
Luqman Saleem
Luqman Saleem 2021년 5월 15일
댓글: Luqman Saleem 2021년 5월 17일
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 = ?

채택된 답변

Matt J
Matt J 2021년 5월 15일
result(:,:,3)=Ax.*By-Ay.*Bx;

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Get Started with MATLAB에 대해 자세히 알아보기

제품


릴리스

R2020a

Community Treasure Hunt

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

Start Hunting!

Translated by