Mean Curvature (Fast code)
No License
This function is a modified form of original code (see below). I vectorized the code to make the code time efficient.
The function calculates the mean curvature of the input structured matrix data. The input are the coordinate matrices of x,y & z (as generated by meshgrid or similar functions).
The outputs are a matrix containing the mean curvature at each point and a scalar giving the surface average mean curvature (SAMC).
Mistake found by Anthony Beaucamp. Thanks for letting me know! File has been updated.
Cite As
Pratik Kamdar (2026). Mean Curvature (Fast code) (https://se.mathworks.com/matlabcentral/fileexchange/10010-mean-curvature-fast-code), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Platform Compatibility
Windows macOS LinuxCategories
Tags
Acknowledgements
Inspired by: Mean Curvature
Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
| Version | Published | Release Notes | |
|---|---|---|---|
| 1.0.0.0 | Mistake in formula. Found by Anthony Beaucamp. Thanks for letting me know! |
