I suggest adding additional test cases to make the problem stronger.
2183 Solvers
Replace NaNs with the number that appears to its left in the row.
2018 Solvers
516 Solvers
483 Solvers
Calculate the Number of Sign Changes in a Row Vector (No Element Is Zero)
226 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!