Looks like the image toolbox still isn't available on Cody. Otherwise, padarray would be perfect for this one.
3000 Solvers
6315 Solvers
Longest run of consecutive numbers
1812 Solvers
Sum the numbers on the main diagonal
459 Solvers
187 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!