Different dimension matrix addition
2 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
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 Commenti
Risposta accettata
KSSV
il 18 Lug 2022
Is this what you want?
A = rand(2) ;
B = rand(4) ;
iwant = repmat(A,2,2)+B
0 Commenti
Più risposte (0)
Vedere anche
Categorie
Scopri di più su Creating and Concatenating Matrices in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!