Pedagogic solution is available in position 2 (commented, same as solution 1 but more explicit thus suboptimal).
1110 Solvers
406 Solvers
203 Solvers
292 Solvers
6 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!