function [ TruncData] = TruncateMeasuredData(MeasData,idx);
%UNTITLED12 Summary of this function goes here
%   Detailed explanation goes here
names = fieldnames(MeasData);

for i = 1:length(names)
   if (max(idx) <= length(MeasData.(names{i})))
     TruncData.(names{i}) = MeasData.(names{i})(idx);
   else
     TruncData.(names{i}) = MeasData.(names{i});
   end
end

end

