ffndgrid Fast 'n' Furious N-D data gridding

FFNDGRID Grids unevenly spaced N-dimensional data.

You are now following this Submission

FFNDGRID grids unevenly spaced data.

This is a generalization of FFGRID applicable to N-D data. FFNDGRID may also be used to generate N-dimensional histograms or densityplots.

This is very useful when dealing with data which are difficult to view using plot3 (which, in my experience, is the case with all 3-D data that are not completely smooth).

FFNDGRID is a Fast `n' Furious way to do the same job that griddata does for you. The difference is that there is no interpolation. Empty points are left empty rather than trying to fill them using neighbouring points. Also, FFNDGRID has no problem with multiple points that fall in the same grid cell. Data are displayed using IMAGSC unless output arguments are specified, in which case the matrix of (regularly spaced) data is given along with the vectors specifying the binning.

Cite As

Per A. Brodtkorb (2026). ffndgrid Fast 'n' Furious N-D data gridding (https://www.mathworks.com/matlabcentral/fileexchange/4157-ffndgrid-fast-n-furious-n-d-data-gridding), MATLAB Central File Exchange. Retrieved .

Acknowledgements

Inspired: N-D customized gridding

Categories

Find more on Interpolation in Help Center and MATLAB Answers

General Information

MATLAB Release Compatibility

  • Compatible with any release

Platform Compatibility

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