フィルターのクリア

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;
  1 件のコメント
Luqman Saleem
Luqman Saleem 2021 年 5 月 17 日
Thank you, so simple.

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeGet 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