View License

Download apps, toolboxes, and other File Exchange content using Add-On Explorer in MATLAB.

» Watch video

Highlights from
Point cloud normal vector

Be the first to rate this file! 14 Downloads (last 30 days) File Size: 1.76 KB File ID: #41609 Version: 1.0
image thumbnail

Point cloud normal vector



NORMND computes the vector normal to points in an N-D point cloud

| Watch this File

File Information

normnd(DATA) computes the vector normal to the N-dimensional sample
    point locations in DATA. DATA is defined as an MxN matrix where M is
    the number of samples. Each column contains the sample locations in
    each of the orthogonal dimensions in N-dimensional space
        % Compute the normal vector to 3-D sample points
        data = randn(20,3);
        % Bias the normal vector toward the Z-axis
        data(:,3) = data(:,3)./10;
        v = normnd(data);
        % Plot
        figure; scatter3(data(:,1),data(:,2),data(:,3));
        hold on; quiver3(mean(data(:,1)),mean(data(:,2)),mean(data(:,3)),v(1),v(2),v(3))
    See also: cov, eig.

Required Products MATLAB
MATLAB release MATLAB 8.1 (R2013a)
Tags for This File   Please login to tag files.
Please login to add a comment or rating.

Contact us