Gridded interpolation and gradients of 3D scattered data
Updated 30 Jul 2020
Interpolate 3D scattered data to gridded data and compute their derivatives
(i) Interpolate 3D scatterred data to gridded data
(ii) Reduce noise by applying curvature regularization 
(iii) Generate central difference operator 
(iv) Compute first order derivatives
% ****** ATTENTION ******
% The "x,y,z" or "1-,2-,3-" coordinates in this exchange file correspond to
% the 1st, 2nd and 3rd indices of Matlab workspace variable. For example,
% p_meas(:,1) and p_meas(:,2) are the x- & y-coordinates of scattered points.
% This is a little different from some MATLAB image processing functions.
% For example, if a 3D image has size M*N*L, in this code, we always have
% the image size_x=M, size_y=N, size_z=L. If you use some Matlab computer
% vision/image post-processing function, for example, 'imagesc3D', or
% 'imagesc', or 'imshow', or 'surf', it will reads size_x=N, size_y=M, size_z=L.
% Please pay attention to this.
I appreciate your comments and ratings to help me keep improving this code!
Please feel free to follow this code, then you will be notified with all the important updates/corrections in the future.
 regularizeNd. https://www.mathworks.com/matlabcentral/fileexchange/61436-regularizend
 Augmented Lagrangian Digital Volume Correlation (ALDVC). https://www.mathworks.com/matlabcentral/fileexchange/77019-augmented-lagrangian-digital-volume-correlation-aldvc
 Streamcolor. https://www.mathworks.com/matlabcentral/fileexchange/24049-streamcolor
Jin Yang (2023). Gridded interpolation and gradients of 3D scattered data (https://github.com/jyang526843/Scatter2Grid3D), GitHub. Retrieved .
MATLAB Release Compatibility
Platform CompatibilityWindows macOS Linux
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!
Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
Versions that use the GitHub default branch cannot be downloaded
Correct bugs in streamline plot.
Important correction: gradients F11, F12, F13 should switch with F21, F22, F23. Please ignore this message if you download version later than 1.0.2.
Added plot functions: (i) scatter plot; (ii) cone plot; (iii) stream line.