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.
55 Solvers
Convert Roman to Arabic Numerals
76 Solvers
187 Solvers
Removing rows from a matrix is easy - but what about inserting rows?
127 Solvers
Replace multiples of 5 with NaN
360 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!