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]
How to find the position of an element in a vector without using the find function
2486 Solvers
1324 Solvers
674 Solvers
Fix the last element of a cell array
384 Solvers
Matlab Basics - Convert a row vector to a column vector
440 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!