Function names cannot begin with a number. Also, this is an extremely simple problem that has been posted many times. Please put more thought into problems before posting them.
I changed the problem slightly and added some more test cases.
Leading size is 0 !!!!!!!!!!!!
leading solution is zero ,what does this mean?
y=[0:2:n]
Replace NaNs with the number that appears to its left in the row.
2018 Solvers
536 Solvers
Make a random, non-repeating vector.
2795 Solvers
Who has power to do everything in this world?
318 Solvers
2853 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!