Thank you very much for this simple PLL implementation. However, I noticed it uses both the real and imaginary parts of the Signal. In a physical implementation we only have access to the real part of the signal, right? So how can this be applied to a real, physical signal?
PLEASE SR I WOULD LIKE TO KNOW THE MEAN OF SOME VARIABLES:
phd_output(n)=imag(Signal(n)*vco(n));%Complex multiply VCO x Signal input
ALSO I WOULD LIKE TO KNOW HERE I COULD FIND SOME BOOKS TO READ ABOUT PLL