Place one 2D matrix inside another

버전 1.0.0.0 (654 Bytes) 작성자: 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 (2024). Place one 2D matrix inside another (https://www.mathworks.com/matlabcentral/fileexchange/19989-place-one-2d-matrix-inside-another), MATLAB Central File Exchange. 검색됨 .

MATLAB 릴리스 호환 정보
개발 환경: R2008a
모든 릴리스와 호환
플랫폼 호환성
Windows macOS Linux
카테고리
Help CenterMATLAB Answers에서 Creating and Concatenating Matrices에 대해 자세히 알아보기
도움

받음: insertrows

Community Treasure Hunt

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

Start Hunting!
버전 게시됨 릴리스 정보
1.0.0.0