Place one 2D matrix inside another
版本 1.0.0.0 (654 字节) 作者:
Rob Slazas
Places a 2D matrix B into a larger 2D matrix A
2.1K 次下载
更新时间
2008/5/21
无许可证
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);
引用格式
Rob Slazas (2026). Place one 2D matrix inside another (https://ww2.mathworks.cn/matlabcentral/fileexchange/19989-place-one-2d-matrix-inside-another), MATLAB Central File Exchange. 检索时间: .
MATLAB 版本兼容性
创建方式
R2008a
兼容任何版本
平台兼容性
Windows macOS Linux类别
在 Help Center 和 MATLAB Answers 中查找有关 Creating and Concatenating Matrices 的更多信息
标签
致谢
参考作品: insertrows
| 版本 | 已发布 | 发行说明 | |
|---|---|---|---|
| 1.0.0.0 |
