Mean Curvature (Fast code)

Calculate the Mean curvature of a given surface (x,y,z) using vectorized form.

You are now following this Submission

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://www.mathworks.com/matlabcentral/fileexchange/10010-mean-curvature-fast-code), MATLAB Central File Exchange. Retrieved .

Acknowledgements

Inspired by: Mean Curvature

General Information

MATLAB Release Compatibility

  • Compatible with any release

Platform Compatibility

  • Windows
  • macOS
  • Linux
Version Published Release Notes Action
1.0.0.0

Mistake in formula. Found by Anthony Beaucamp. Thanks for letting me know!