Syntax to multiply 10 different 2 by 2 matrices sequentially in matlab
이전 댓글 표시
Please I need help with syntax to multiply ten 2 by 2 matrices i.e T = A1*A2*A3*A4*A5*A6*A7*A8*A9*A10 in matlab
댓글 수: 2
Image Analyst
2013년 9월 14일
"Matrix" multiplication, or "element-by-element" multiplication?
Segun Emmy
2013년 9월 14일
채택된 답변
추가 답변 (1개)
Image Analyst
2013년 9월 15일
For element by element multiplication, I believe this should work:
T = A1.*A2.*A3.*A4.*A5.*A6.*A7.*A8.*A9.*A10
If the A's are of class integer, you'll have to watch out if they exceed the max value, intmax('uint8') or intmax('uint16'), or else your product will be clipped. Cast to double before multiplication if that's the case.
카테고리
도움말 센터 및 File Exchange에서 Loops and Conditional Statements에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!