Fixed a small bug in regularizeNd.m
Fixed a small bug in regularizeNd.m

Signed-off-by: Jason Nicholson <6cc6e4d358f9503f0ad9662fce2228e4feccb9b2@users.noreply.github.com>

jasonnicholson/regularizeNd,jasonnicholson/regularizeNd