Real Sequence As Rational Function in e^-jw

In summary, to convert a piece wise function to the required format for the MATLAB function FREQZ, you can use the z-transform and plug in z=e^(jwdt) where dt is the time between samples. This will give you the numerator of the desired format, while the denominator is simply 1.
  • #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.
 
Last edited:
Mathematics news on Phys.org
  • #2
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:
  • #3


To convert a piecewise function like y[n] to a rational function in e^-jw, you can use the following formula:

y[n] = (p0 + p1e^(-jw) + ... + pMe^(-jwM)) / (d0 + d1e^(-jw) + ... + dNe^(-jwN))

To calculate the coefficients, you can use the discrete Fourier transform (DFT) or the fast Fourier transform (FFT) algorithm. These algorithms can be implemented in MATLAB using the functions fft() or fft2(). Once you have the Fourier transform of the piecewise function, you can use the coefficients of the transform to calculate the coefficients of the rational function in e^-jw.

For example, if the Fourier transform of y[n] is Y(e^-jw), then the coefficients of the rational function can be calculated as follows:

p0 = Y(0)
p1 = Y(1)
...
pM = Y(M)
d0 = Y(0)
d1 = Y(1)
...
dN = Y(N)

Note that the values of p0 to pM and d0 to dN may need to be scaled by a factor of 1/N, depending on the specific implementation of the DFT or FFT algorithm.

Once you have the coefficients, you can use the MATLAB function FREQZ to calculate the frequency response of the rational function in the specified format.
 

FAQ: Real Sequence As Rational Function in e^-jw

What is a real sequence?

A real sequence is a list of real numbers that are arranged in a specific order. They can be finite or infinite in length, and each number in the sequence is called a term.

What is a rational function?

A rational function is a mathematical function that can be expressed as the ratio of two polynomials. It can be written in the form f(x) = P(x)/Q(x), where P(x) and Q(x) are polynomials.

What is the meaning of e^-jw in the context of a real sequence as a rational function?

In this context, e^-jw represents the complex exponential function, where j is the imaginary unit and w is the frequency variable. It is commonly used in signal processing and represents a sinusoidal function with a specific frequency.

How is a real sequence represented as a rational function in e^-jw?

A real sequence can be represented as a rational function in e^-jw by taking the discrete Fourier transform (DFT) of the sequence. This converts the sequence into a continuous function in the frequency domain, where e^-jw is used to represent the complex sinusoidal components of the original sequence.

What is the significance of e^-jw in the study of real sequences?

E^-jw is significant in the study of real sequences as it allows us to analyze the frequency components of a sequence. By converting a real sequence into a rational function in e^-jw, we can identify and manipulate its frequency components, which is useful in various fields such as signal processing and data analysis.

Similar threads

Replies
1
Views
2K
Replies
6
Views
2K
Replies
24
Views
3K
2
Replies
51
Views
9K
Replies
4
Views
5K
Replies
13
Views
2K
Replies
1
Views
2K
Replies
5
Views
5K
Back
Top