I have read the paper A Fast Power Grid Frequency Estimation Approach Using Frequency Shift Filtering.
I want to prove it using a numerical example, I have problem how to calculate the
Let's suppose that I have a sample signal which I have sampled with an ADC and for simplicity I will use Matlab to make the signal. (the signal has a 50.1HZ frequency) and I want to estimate it with this paper approach,
fs = 12800; % Sampling frequency (samples per second) dt = 1/fs; % seconds per sample StopTime = 0.02; % 20 mili seconds or a 1 full cycle of 50Hz AC t = (0:dt:StopTime-dt)'; % seconds F = 50.1; % Sine wave frequency (hertz) X = sin(2*pi*F*t); % Generate sine wave
Now How should I calculate the
hp(n) values using MATLAB?
Finally I should convolve the result with this sample sin wave to get 50.1 Hz estimation.