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]
1202 Solvers
Project Euler: Problem 8, Find largest product in a large string of numbers
340 Solvers
middleAsColumn: Return all but first and last element as a column vector
427 Solvers
Sum the 'edge' values of a matrix
241 Solvers
340 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!