fix error

P_val = P_val + w_k(thisI) * (P_k(:,P_range) + delta_m * delta_m');
minor fix