- #1
dduardo
Staff Emeritus
- 1,906
- 3
How do I convert a piece wise function like this:
y[n]=
{1 -N<=n<=N
{0 otherwise
to something like this:
p0+p1e^(-jw)+...+pMe^(-jwM)
------------------------------
d0+d1e^(-jw)+...+dNe^(-jwN)
Basically, what formula do I need to use to calculate the coeffients?
[Edit] I'm trying to use the MATLAB function FREQZ, but requires the formula to be in the above format.
y[n]=
{1 -N<=n<=N
{0 otherwise
to something like this:
p0+p1e^(-jw)+...+pMe^(-jwM)
------------------------------
d0+d1e^(-jw)+...+dNe^(-jwN)
Basically, what formula do I need to use to calculate the coeffients?
[Edit] I'm trying to use the MATLAB function FREQZ, but requires the formula to be in the above format.
Last edited: