Looks like the image toolbox still isn't available on Cody. Otherwise, padarray would be perfect for this one.
7013 Solvers
Make a run-length companion vector
524 Solvers
467 Solvers
288 Solvers
225 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!