Looks like the image toolbox still isn't available on Cody. Otherwise, padarray would be perfect for this one.
3158 Solvers
192 Solvers
386 Solvers
Create an n-by-n null matrix and fill with ones certain positions
280 Solvers
525 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!