function RCSbatch()
% function RCSbatch()
% Match MATLAB version activated with corresponding RCS Toolbox

V = version;
V = sprintf('%s',V(end-6:end-1));

switch lower(V)
  case 'r2013a'
     addpath(genpath('/project/scv/examples/matlab/RCStoolbox/R2013a/'),'-begin');
  case 'r2014a'
     addpath(genpath('/project/scv/examples/matlab/RCStoolbox/R2014a/'),'-begin');
  case 'r2014b'
     addpath(genpath('/project/scv/examples/matlab/RCStoolbox/R2014b/'),'-begin');
  otherwise
     disp(['You are running: ' V])
     disp('It is not supported by RCS. Please contact RCS for assistance.')
     exit
end

% Kadin Tseng
% RCS, IS&T, Boston University
% Created: January, 2015
% Modified: February, 2015
