The correct answer is not really defined for x = 1, that is a one-sided polygon.
The test cases are insufficient.
Find the sum of all the numbers of the input vector
32670 Solvers
Find common elements in matrix rows
1272 Solvers
Magic is simple (for beginners)
2955 Solvers
370 Solvers
Element by element multiplication of two vectors
272 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!