ffndgrid Fast 'n' Furious N-D data gridding

FFNDGRID Grids unevenly spaced N-dimensional data.
2.6K Downloads
Updated 18 Nov 2003

No License

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 (2024). 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 .

MATLAB Release Compatibility
Created with R11
Compatible with any release
Platform Compatibility
Windows macOS Linux
Categories
Find more on Interpolation in Help Center and MATLAB Answers
Acknowledgements

Inspired: N-D customized gridding

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
Version Published Release Notes
1.0.0.0