필터 지우기
필터 지우기

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

조회 수: 1 (최근 30일)
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 CenterFile Exchange에서 Mathematics에 대해 자세히 알아보기

태그

제품


릴리스

R2019a

Community Treasure Hunt

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

Start Hunting!

Translated by