Looks like the image toolbox still isn't available on Cody. Otherwise, padarray would be perfect for this one.
651 Solvers
613 Solvers
292 Solvers
142 Solvers
388 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!