% Archana Gupta
% Project
% function to normalize data

function datanew = normalize(data) 

datsize=size(data,1);
datanew=[];

% find mean and standard deviation of the data
meanv = mean(data);
stdv = std(data);

for i=1:datsize
    x = data(i,:)-meanv;
    datanew(i,1:3) = x./stdv;
end
