Needs more test cases, having arrays with more than 4 elements.
This is definitely cheating.
I couldn't resist... :o) Sorry!!!
6772 Solvers
Replace NaNs with the number that appears to its left in the row.
2032 Solvers
5341 Solvers
The sum of the numbers in the vector
430 Solvers
364 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!