フィルターのクリア

If A and B are 2x2 matrices, how is the input (A*B)^2 interpreted by MATLAB as?

1 回表示 (過去 30 日間)
Craig Egan Allistair Tan
Craig Egan Allistair Tan 2022 年 6 月 4 日
コメント済み: Matt J 2022 年 6 月 4 日
Is (A*B)^2 interpreted as A*B*A*B or (A*B)*(A*B)?
  1 件のコメント
Matt J
Matt J 2022 年 6 月 4 日
These are mathematically equivalent. Do you mean, in what order are the operations performed?

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

回答 (2 件)

Matt J
Matt J 2022 年 6 月 4 日
It is interpreted as,
tmp=A*B;
C=tmp*tmp;

Benjamin Thompson
Benjamin Thompson 2022 年 6 月 4 日
Since 2x2 matrix multiplication is supported by the associative property, both of those interpretations are the same. This is similar to scalar multiplication.

カテゴリ

Help Center および File ExchangeMathematics についてさらに検索

タグ

製品


リリース

R2019a

Community Treasure Hunt

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

Start Hunting!

Translated by