필터 지우기
필터 지우기

Info

이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.

Matrix Multiplication from Seperation?

조회 수: 1 (최근 30일)
Rahul Marwaha
Rahul Marwaha 2022년 10월 24일
마감: John D'Errico 2022년 10월 24일
Hi i'm trying to multiply a 3x27 matrix with a 3x9 matrix. These dimensions dont agree so the intent is it to split the 3x27 matrix in to 9 equal 3x3 matrices and split the 3x9 matrix into 9 equal 3x1 matrices.
I.e regardless of matrix size, the 3x(27 or any integer divisible by three) matrix splits into an equal number of 3x3 matrices and the 3x(9 or any integer divisible by three) is split into equal numer of 3x1 matrices.
e.g.
A = randi(10,3,27)
A = 3×27
8 10 1 5 8 1 6 1 1 6 7 6 6 1 6 5 4 2 8 3 4 5 7 5 1 3 5 10 9 1 9 7 10 1 5 8 5 8 3 2 5 6 9 8 2 7 7 5 9 2 3 7 1 9 8 8 10 10 9 7 1 7 1 6 7 9 7 10 7 9 1 2 10 8 8 1 4 10 3 8 2
B = randi(10,3,9)
B = 3×9
4 6 9 1 1 4 3 2 9 8 7 2 5 4 2 6 7 8 5 7 4 8 6 7 8 2 10
E.g. matrix mulitplicaiton is [8 10 1;10 9 1;8 8 10]*[4;8;5]
Any help would be much appreciated!

답변 (0개)

이 질문은 마감되었습니다.

Community Treasure Hunt

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

Start Hunting!

Translated by