You start with a Function Template that is only two characters away from working properly. The math itself is fairly simple. The actual problem is understanding the purpose of the function despite the somewhat criminal coding style.
You can pick some ideas to improve your own style here.

Solution Stats

51 Solutions

17 Solvers

Last Solution submitted on Mar 13, 2026

Last 200 Solutions

Problem Comments

Solution Comments

Show comments
Loading...

Problem Recent Solvers17

Suggested Problems

More from this Author4

Problem Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!