This type of problem kills the Cody.
@Jean-Marie Sainthillier: thanks for pointing this out. I made some improvements and changed the function name, which should cause prior solutions to be invalidated.
@Fatih KIRCI: as originally posted, this problem was prone to be deleted. Instead, I improved it. Please take notes of these changes as to how you can improve any other problems you publish. For example, any problem should have multiple test cases.
Thank you Grant
841 Solvers
578 Solvers
Create sequnce 1 4 9 16 25.........
194 Solvers
101 Solvers
295 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!