%% This script generates and plots 3D data, and performs a principal
%% component analysis to decorrelate the data, and to reduce the
%% dimensionality of the feature space.
% Note that matlab has an optimized function to perform PCA: princomp()
% However, in this script we perform PCA manually by calculating the
vectors, for demonstration/educational purposes.