How do I convert a piece wise function like this:(adsbygoogle = window.adsbygoogle || []).push({});

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.

**Physics Forums | Science Articles, Homework Help, Discussion**

Join Physics Forums Today!

The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

# Real Sequence As Rational Function in e^-jw

**Physics Forums | Science Articles, Homework Help, Discussion**