cosmo set path hdr

function cosmo_set_path()
% set the matlab path for CoSMoMVPA
%
% cosmo_set_path()
%
% Notes:
%  - if $ROOT is the root directory of CoSMoMVPA, then this function adds
%    the paths $ROOT/{mvpa,external}, and their subdirectories, to the
%    matlab path. It removes $ROOT{doc,examples,tests}.
%  - A warning message is given if an unexpected directory structure is
%    encountered.
%  - To store the path, run savepath after calling this function.
%
% Example:
%   cosmo_set_path();
%   savepath();
%
% #   For CoSMoMVPA's copyright information and license terms,   #
% #   see the COPYING file distributed with CoSMoMVPA.           #