It contains the Matlab codes for the developed shrinkage based particle filter. The shrinkage based particle filter combined the shrinkage estimator and the particle filter to jointly estimate the shadowing noise covariance matrix of measurements and the state of the mobile user.