In the frequency sampling method, the desired output is obtained by sampling and processing values at each sample. It used to obtain standard frequency selective filters like high pass, low pass and band pass filters.
The coding for this was done in SCILAB, to obtain the Magnitude and Phase plots. h[n] values of the signal and the magnitude and phase plot was obtained using SCILAB.
Go to the link below to view the code for frequency sampling,
https://drive.google.com/open?id=0B8OWu2Drhsp0dE9ncDdPTGlhd3c
If order of both LPF and HPF are kept same then the phase plot is similar in both the cases.
ReplyDeleteIt won't be similar. It might appear similar, due to the continuous fluctuations of phase spectrum in order to maintain the phase between pi to -pi.
Delete