While gradient() replies the slope, gradient(gradient()) determines 2nd derivative. The signed curvature is defined as:
k = y'' / (1 + y'^2)^1.5
with primes mean the derivative to x here.
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!