Different dimension matrix addition
2 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
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 commentaires
Réponse acceptée
KSSV
le 18 Juil 2022
Is this what you want?
A = rand(2) ;
B = rand(4) ;
iwant = repmat(A,2,2)+B
0 commentaires
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Creating and Concatenating Matrices dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!