Different dimension matrix addition
2 views (last 30 days)
Show older comments
I have a 2×2 matrix and i want to add it to a 4×4 matrix. How shall i proceed to do this?
2 Comments
Accepted Answer
KSSV
on 18 Jul 2022
Is this what you want?
A = rand(2) ;
B = rand(4) ;
iwant = repmat(A,2,2)+B
0 Comments
More Answers (0)
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!