Hello all, I want to extract the period out of a complex discrete signal. Currently I have the Matlabscript of the attachement. However, the values I get out of this script are not correct. There is some kind of systematic bias in it. I think it has something to do with index * samplefrequency. Anyone an idea what could be wrong? Thanks in advance!