Code covered by the BSD License  

Highlights from
Point cloud normal vector

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

Point cloud normal vector

by Jered Wells

 

03 May 2013

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

| Watch this File

File Information
Description

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
 
    Example:
        % 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  
Everyone's Tags
eigenvalue, eigenvector, normal, point cloud, vector
Tags I've Applied
Add New Tags Please login to tag files.
Please login to add a comment or rating.

Contact us