Problem 44887. Given a matrix A (size m x n) create a matrix B (size m+2 x n+2) which consists of matrix A surrounded by zeros. See Example below:
Solution Stats
Problem Comments
Solution Comments
Show commentsProblem Recent Solvers150
Suggested Problems
-
Back to basics 22 - Rotate a matrix
869 Solvers
-
Sum the numbers on the main diagonal
543 Solvers
-
440 Solvers
-
242 Solvers
-
Compute LOG(1+X) in natural log
234 Solvers
More from this Author4
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!