Real Sequence As Rational Function in e^-jw

Click For Summary
SUMMARY

The discussion focuses on converting a piecewise function into a rational function suitable for use with the MATLAB function FREQZ. The original function is defined as y[n] = 1 for -N <= n <= N and 0 otherwise. To achieve the desired format, participants suggest obtaining the z-transform of the sequence, resulting in a numerator of e^(jwdtN) + e^(jwdt(N-1)) + ... + 1 + e^(-jwdt) + e^(-jwdt2) + ... + e^(-jwdtN), with the denominator being 1. This transformation is essential for analyzing the frequency response of a discrete-time system.

PREREQUISITES
  • Understanding of piecewise functions
  • Familiarity with z-transform techniques
  • Knowledge of MATLAB, specifically the FREQZ function
  • Basic concepts of discrete-time systems and frequency response
NEXT STEPS
  • Study the z-transform and its applications in signal processing
  • Learn how to implement the MATLAB FREQZ function for frequency response analysis
  • Explore discrete-time system analysis techniques
  • Research the relationship between z-transform and frequency response
USEFUL FOR

Signal processing engineers, MATLAB users, and students studying discrete-time systems will benefit from this discussion.

dduardo
Staff Emeritus
Science Advisor
Insights Author
Messages
1,902
Reaction score
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.
 
Last edited:
Physics news on Phys.org
dduardo said:
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.

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:

Similar threads

  • · Replies 1 ·
Replies
1
Views
4K
  • · Replies 8 ·
Replies
8
Views
3K
  • · Replies 6 ·
Replies
6
Views
2K
  • · Replies 24 ·
Replies
24
Views
4K
  • · Replies 5 ·
Replies
5
Views
25K
  • · Replies 13 ·
Replies
13
Views
4K
  • · Replies 1 ·
Replies
1
Views
3K
  • · Replies 10 ·
Replies
10
Views
6K
  • · Replies 6 ·
Replies
6
Views
6K
  • · Replies 2 ·
Replies
2
Views
3K