Different dimension matrix addition
2 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Nir Vaishnav
am 18 Jul. 2022
Kommentiert: Nir Vaishnav
am 18 Jul. 2022
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 Kommentare
Akzeptierte Antwort
KSSV
am 18 Jul. 2022
Is this what you want?
A = rand(2) ;
B = rand(4) ;
iwant = repmat(A,2,2)+B
0 Kommentare
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Creating and Concatenating Matrices finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!