Your solution is fastest so far.
Good job, Athi.
@Athi, your solution contains many "magic" constant variables that I don't know how you got.
William's solution is much easier to understood, although it is slower than yours.
Thanks li haitao.
28515 Solvers
758 Solvers
Piecewise linear interpolation
302 Solvers
318 Solvers
391 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!