MATLAB: Anyone know any good resources that will help to write this Matlab code? I am trying to understand what is deflation method. Thanks.

eigenvalueMATLAB

Use the deflation method to find the third eigenvector and associated normalized eigenvector. 
Related Question