If A and B are 2x2 matrices, how is the input (A*B)^2 interpreted by MATLAB as?
2 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Is (A*B)^2 interpreted as A*B*A*B or (A*B)*(A*B)?
1 comentario
Matt J
el 4 de Jun. de 2022
These are mathematically equivalent. Do you mean, in what order are the operations performed?
Respuestas (2)
Benjamin Thompson
el 4 de Jun. de 2022
Since 2x2 matrix multiplication is supported by the associative property, both of those interpretations are the same. This is similar to scalar multiplication.
0 comentarios
Ver también
Categorías
Más información sobre Get Started with MATLAB en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!