Filter löschen
Filter löschen

Info

Diese Frage ist geschlossen. Öffnen Sie sie erneut, um sie zu bearbeiten oder zu beantworten.

Matrix Multiplication from Seperation?

1 Ansicht (letzte 30 Tage)
Rahul Marwaha
Rahul Marwaha am 24 Okt. 2022
Geschlossen: John D'Errico am 24 Okt. 2022
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!

Antworten (0)

Diese Frage ist geschlossen.

Community Treasure Hunt

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

Start Hunting!

Translated by