www.pudn.com > trackingdemos.zip > LLR_deduct_meas.m
function Z_new = LLR_deduct_meas(Z, theta, sigma)
% find the measurements far from theta (outside 95% confidence interval)
N = length(Z);
for i=1:N
Z_new(i).Z = Z(i).Z(find(abs(Z(i).Z-theta)>1.96*sigma));
end