Dismiss Notice
Join Physics Forums Today!
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

  1. Feb 15, 2005 #1


    User Avatar
    Staff Emeritus

    How do I convert a piece wise function like this:


    {1 -N<=n<=N
    {0 otherwise

    to something like this:


    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: Feb 15, 2005
  2. jcsd
  3. Feb 15, 2005 #2


    User Avatar
    Homework Helper

    Well, that looks the frequency response of a discrete time system.

    I might be wrong, but I'd first get the z-transform of your sequence:

    z^N + z^(N-1) + z^(N-2) + .....+ 1 + z^(-1) + z^(-2) + ....z^(-(N-1))+z^(-N)

    then plug in z=e^(jwdt)

    dt is the time between samples.

    e^(jwdtN) + e^(jwdt(N-1)) + .....+ 1 + e^(-jwdt) + e(-jwdt2) + .... e^(-jwdtN)

    So that would be your numerator, and the denominator is just 1. Is that form acceptable?
    Last edited: Feb 15, 2005
Share this great discussion with others via Reddit, Google+, Twitter, or Facebook