Different dimension matrix addition
2 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Nir Vaishnav
el 18 de Jul. de 2022
Comentada: Nir Vaishnav
el 18 de Jul. de 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 comentarios
Respuesta aceptada
KSSV
el 18 de Jul. de 2022
Is this what you want?
A = rand(2) ;
B = rand(4) ;
iwant = repmat(A,2,2)+B
0 comentarios
Más respuestas (0)
Ver también
Categorías
Más información sobre Creating and Concatenating Matrices en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!