No License

Download apps, toolboxes, and other File Exchange content using Add-On Explorer in MATLAB.

» Watch video

Highlights from
Place one 2D matrix inside another

5.0 | 1 rating Rate this file 3 Downloads (last 30 days) File Size: 1.08 KB File ID: #19989 Version: 1.0
image thumbnail

Place one 2D matrix inside another


Rob Slazas (view profile)


21 May 2008 (Updated )

Places a 2D matrix B into a larger 2D matrix A

| Watch this File

File Information

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:


Insertrows(A,B,Ind) inspired this file.

MATLAB release MATLAB 7.6 (R2008a)
Tags for This File   Please login to tag files.
Please login to add a comment or rating.
Comments and Ratings (1)
27 May 2008 Khai Le


Contact us