It looks like there's an error in the test suite; test cases 3 and 4 have different length d and n vectors.
Oof! I hate it when that happens. Fixed it. Thanks for the note.
9840 Solvers
Back to basics 4 - Search Path
322 Solvers
Back to basics 8 - Matrix Diagonals
782 Solvers
Getting the absolute index from a matrix
211 Solvers
724 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!