Is it possible to multiply a 3x3 matrix by the COLUMNS of a 3x3 matrix without using a loop and store the results in a new 3x3matrix?
조회 수: 1 (최근 30일)
이전 댓글 표시
For example if I have the matrix z = [1 2 3; 1 2 3; 1 2 3] and I have another matrix t = [ 2 2 2; 2 2 2; 2 2 2]. I want to multiply z by the first, second and third row of t. So by the end of this process I should have three vectors of the size 3x1 that should be placed right next to each other to create a 3x3 matrix. I have already done this using a for loop, but I was wondering if there was a faster way to do this because the matlab program I am building, I am multiplying a 3x3 matrix by the columns of a 3 x 1000 matrix.
댓글 수: 0
답변 (1개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Creating and Concatenating Matrices에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!