The ability to compute the local curvature at a point given a two-dimensional curve does not come built-in with MATLAB.
As a workaround, refer the following submissions on MATLAB Central that compute the local curvature of an arbitrary surface:
<http://www.mathworks.com/matlabcentral/fileexchange/11168-surface-curvature>
<http://www.mathworks.com/matlabcentral/fileexchange/10010-mean-curvature-fast-code>
Note that MathWorks does not guarantee or warrant the use or content of these submissions. Any questions, issues, or complaints should be directed to the contributing author.
Best Answer