% loadScript: simple matlab script to load the data and extract the domain
% of each variable.

% load training data
fid = fopen('trainData.txt');
C = textscan(fid,'%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c','Delimiter',',','CollectOutput',1);
trainData = C{1};
fclose(fid);

% load testing data
fid = fopen('testData.txt');
C = textscan(fid,'%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c','Delimiter',',','CollectOutput',1);
testData = C{1};
fclose(fid);

% extract domain
for i = 1:size(trainData,2)
  domain{i} = unique([trainData(:,i);testData(:,i)]);
end

% clean up
clear C;
clear fid;
clear i;
