zero padding in matrix
조회 수: 37 (최근 30일)
이전 댓글 표시
Hi, I have a 5x5 matrix and i would like to pad it with zeros such that its size becomes 200x200 and the 5x5 matrix is in the middle of the 200x200. Please help.
댓글 수: 1
Roger Stafford
2016년 4월 29일
You can't precisely center a 5x5 block in a 200x200 block! In which direction do you want it to be off-center?
채택된 답변
추가 답변 (1개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Operating on Diagonal Matrices에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!