multiply each block of a matrix with another matrix
1 view (last 30 days)
Show older comments
Suppose we have
Matrix A of size 32*32
Matrix B of size 8*8.
How to multiply each block of 8*8 of A with B?
Thanks for the help! :)
0 Comments
Answers (1)
David Hill
on 8 Feb 2020
count=1;
for j=1:4
for k=1:4
out{count}=A((j-1)*8+1:j*8,(k-1)*8+1:k*8)*B;
count=count+1;
end
end
Your output is in a cell array.
See Also
Categories
Find more on Creating and Concatenating Matrices in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!