Place one 2D matrix inside another

Versión 1.0.0.0 (654 Bytes) por Rob Slazas
Places a 2D matrix B into a larger 2D matrix A
2,1K descargas
Actualizado 21 may 2008

Sin licencia

Function that places a 2D matrix B into a larger 2D matrix A. The upper-left corner of B is placed at coordinates (r,c) in A. If (r,c) are not given, then B is put in the upper-left corner of A, a default of (1,1). Some error checking is done first to make sure that A and B are 2D matrices, A is big enough to contain B, and the given (r,c) will not spill B outside of A.

The screenshot results from calling:
putBinA(magic(8),zeros(3),2,4);

Citar como

Rob Slazas (2024). Place one 2D matrix inside another (https://www.mathworks.com/matlabcentral/fileexchange/19989-place-one-2d-matrix-inside-another), MATLAB Central File Exchange. Recuperado .

Compatibilidad con la versión de MATLAB
Se creó con R2008a
Compatible con cualquier versión
Compatibilidad con las plataformas
Windows macOS Linux
Categorías
Más información sobre Creating and Concatenating Matrices en Help Center y MATLAB Answers.
Agradecimientos

Inspirado por: insertrows

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
Versión Publicado Notas de la versión
1.0.0.0