function [ SelectedData] = SelectData(PertinantFiles,MeasData,idx);

names = fieldnames(MeasData{PertinantFiles(1)});
for i = 14:length(names)
    SelectedData.(names{i}) = [];
end


for k = 1:length(PertinantFiles)
  j = PertinantFiles(k);
  for n = 14:length(names)  %Only concatenate arrays which start at element 14.  
    SelectedData.(names{n}) = [SelectedData.(names{n}) MeasData{j}.(names{n})(idx{k})];
  end
end

end

