Create a gridded lookup table of scattered data in n dimensions.
Updated 18 Jun 2024

View License

regularizeNd creates a gridded lookup table from scattered data in n dimensions.
regularizeNd is function written in MATLAB that extends functionality of RegularizeData3d from 2-D input to n-D input. More background can be found here and here.
The basic idea is that a lookup table is fitted to the scattered data with a required level of smoothness. The smoothness parameter trades between goodness of fit and smoothness of the curve (1-D), surface (2-D), or hypersurface (n-D).

Cite As

Jason Nicholson (2024). regularizeNd (, MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2024a
Compatible with R2019b and later releases
Platform Compatibility
Windows macOS Linux
Find more on Preprocessing Data in Help Center and MATLAB Answers

Inspired by: Surface Fitting using gridfit, RegularizeData3D

Community Treasure Hunt

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

Start Hunting!
Version Published Release Notes

Fixing examples that weren't working.


Something is wrong, such that the Examples tab shows "File Not Found". This is an attempt to fix that issue. If it doesn't, I will have to contact MathWorks.


No change to version. Adding an image.




Added a function to auto-generate monotonic constraints, monotonicConstraint.m. It should help problem setup creating constraint matrices.


Added readme's for a simple explanation.
Added live script documentation so that it shows up on the file exchange.


Updated examples.
Removed histc and replaced it with histcount.


Added better documentation of lsqConstrainedAlternative. The documentation is integrated into the MATLAB help system.


Updated direct vs. iterative solver example.


Fixed a problem with one of the examples.


The documentation loads into MATLAB builtin documentation under Supplemental Software. Attached is a toolbox file.


Added a basic getting started file.


Fixed an issue with a missing graph in the documentation.


Had to convert all the documentation and examples to live scripts because File Exchange wasn't displaying the published m files. UGH!


- Added constraints and documentation. This is a major change. The new function is regularizeNdMatrices. See the examples for more information.
- Added the linear least squares constrained solver lsqConstrainedAlternative.

Just renaming the project dropping jasonhnicholson/
Added iterative solvers, corresponding documentation, and an iterative example.
updating description

Added a 1D example.
Just some formatting changes to the description.
Fixed a figure for example1D that didn't display well on the web.

Fixed a spelling mistake in the gridfit examples.
Added a 4D input and 1D output example.
For some reason the description was lost on the last update. I had to redo it. Ugh.
Some formatting was messed up on the gridfit example. I had to republish.

More updates to the examples.
more updates to examples.
Made some fixes to the formatted documentation.
More updates to examples.
More example updates.

-Added several examples.
-Added formatted documentation.

Added support for cubic interpolation. This is a major step. All of the interpolation methods that I intended to use are implemented.
Small update to the function description.

Updating the description.
-Fixed two issues with the internal documentation and example.
-Updated the description with a little more information.
Added a note about ndgrid format of yGrid. yGrid is in the ndgrid format at not the meshgrid format. There is no analogue of the meshgrid format for higher dimensions. In 2d, ndgrid is the transpose of the meshgrid format.
Description formatting.

Fixed a bug I introduced in the last week.

I just uploaded the single m file instead of attaching the repository like when it is connected to github.
Updated the description fixing some grammar errors.
Added a picture.
Grammar fix to description.
Minor update to the link in the description.