Discrete-Time Signals Questions

  1. Consider the signal

    (1)f[n]=[x[n]y[n]z[n]]

    where x[n],y[n],z[n] come from a 3-axis accelerometer as shown below

    accelerometer signals What is the dimension? What is the number of channels?

  2. Let a signal be defined as follows:

(2)f[n]=[x[n]y[n]]

where x[n] and y[n] are plotted in the figure below.

Line drawing for x[n] and y[n].

Characterize this signal in terms of:

By the way, when the (x[n],y[n]) coordinates are connected as in a line drawing, you get the following picture.

xy-plot using the signals x[n] and y[n] from above.

And that is reminiscent of this photograph.

Picture of Dr. Gunther

As we expect for a discrete-time signal, the values in this two-channel sequence could be recorded in a table. In this case, there are 1887 sample pairs in this sequence. The signal is not defined for n<0 or for n1887. Therefore this is a finite length signal.

nx[n]y[n]
0-9.498571-12.246974
1-9.479775-11.973078
2-9.342982-10.885026
3-9.248042-10.400676
4-9.194618-10.154325
18857.253519-8.727917
18867.328393-8.677964
  1. Consider the signal waveform pictured below in which the samples x[n] are indicated by points. The horizontal axis has been scaled to reflect true time with units of seconds. This is a 20 second long segment of a longer signal.

Audio signal waveform

You can hear the audio by clicking here and the slow version. This is the song "Language" by Porter Robinson. You can listen to the full song on YouTube.

Characterize this signal in terms of:

By the way, here is the spectrogram of this segment of the signal. The spectrogram exposes the manner in which signal energy is distributed over time and frequency.

Spectrogram of the signal

When you listen to the signal, you can hear the structures that can be seen in the spectrogram. You can see the notes more easily by looking at just the first two kilohertz of frequency.

Spectrogram zoomed in to show the first two kilohertz.

Here are seconds 5 through 12.

Zoomed in to show only seconds 5 through 12

Notice the falling frequency characteristic of the drums at the start of this segment. This can be visualized in the time domain as well.

Showing the time domain part of the two drum beats

You can see the frequency falling from high to low in the waveform.

  1. This video is a signal. Characterize this signal in terms of:

    • Domain (continuous or discrete)

    • Range (continuous or discrete)

    • Dimension (number of independent variables)

    • Channels (number of dependent variables)

  2. The image below is a signal.

Picture of a panda bear

Characterize this signal in terms of:

To illustrate that this picture reall is a function of two independent variables, consider a surface plot of the same image.

Surface plot of the panda bear

  1. Convolution with delayed impulses leads to delayed replicas of a signal. Consider the five audio signals shown below.

Plots of five different audio recordings of drum samples.

These signals sound like this: crash, hihat, openhat, snare, and kick.

Suppose these five signals are convolved (respectively) with the five impulse patterns shown below.

Impulse patterns

Let's consider each case separately. First the crash sound. This one is not very interesting because there is only one delta function and it is positioned at the origin δ[n]. Convolution of any signal with δ[n] reproduces the original signal.

Crash convolution demo

The other drum kit sounds are a little bit more interesting. They are shown below in order: hi hat, open hat, snare, and kick. Clicking on these images will play the pulse train sound.

Hi hat convolution demo

Open hat convolution demo

Snare convolution demo

Kick convolution demo

This yields the five waveforms shown below. Be sure you see the connection between the location of the impulses and the replicas that result from convolution.

Replicas produced by convolution.

When these five signals are added together, we have the following waveform.

Summed waveform

Click here to listen.

  1. Sinc function in continuous time.

Question. For the sinc function

(3)x(t)=sin(πWt)πt

find the zeros and the amplitude when t=0. The zeros of x(t) are values the values of t where x(t)=0.

Answer. Roughly speaking, a ratio of functions of t such as the sinc function is zero at those values of t where the numerator function is zero, but care must be taken to consider 00 cases. The set of candidate zeros occur when the numerator function is zero,

(4)sin(πWt)=0.

The sin function is zero whenever its argument is an integer multiple of pi,

(5)πWt=πk,kZ={,2,1,0,1,2,}.

Solving for t yields the set of candidate zeros

(6)t=k/WkZ={,2,1,0,1,2,}.

Apparently there is the potential for an infinite number of zeros. However, one the candidate zeros results in a 00 condition, and that is the k=0 case. In this case, the value of the function may be obtained using L'Hopital's Rule, which is

(7)limtaf(t)g(t)=limtaf(t)g(t),

where f(t),g(t) are derivatives of f(t),g(t), respectively. Applying this rule to the sinc function yields

(8)limt0πWcos(πWt)π=W.

Therefore, the k=0 case is not a zero. Rather the sinc function takes on the value W when t=0. In summary, we have learned that:

(9)x(t)|t=0=sin(πWt)πt|t=0=W.

Here is a plot of the sinc function for W=12,1,2. Notice how the peak amplitude at t=0 increases with W. Notice that the zeros (red dots) occur periodically at multiples of 1W. Notice that the density of zeros increases with W.

Sinc functions with different values of W

Here is another plot comparing sinc functions for W=1,10,100.Sinc function as W increases by orders of magnitude

  1. Sinc function in continuous time.

Question. For the sinc function

(10)x(t)=sin(πt)πVt

find the zeros and the amplitude when t=0. The zeros of x(t) are the values of t where x(t)=0.

Answer. The zero crossings occur at t=±1,±2,, and

(11)x(t)|t=0=sin(πt)πVt|t=0=1V.
  1. Sinc function in discrete time.

Question. For the sinc function

(12)x[n]=sin(πMn)πn

find the zeros and the amplitude when n=0. The zeros of x[n] are the values of n where x[n]=0.

Answer. Using the reasoning from above, the amplitude when n=0 is M. The zeros occur when

(13)πMn=πk,k{±1,±2,±3,}.

Canceling π on both sides leaves

(14)Mn=k,k{±1,±2,±3,}.

This equation must be satisfied for integers n and k. Remember that the discrete time signal x[n] is only defined for integer n. Hence, there are several cases to consider.

The plot below illustrates these there cases for M=π,3.5,3. The red circles highlight the zeros. When M=π, there are no zeros. When M=72=3.5, the zeros occur at multiples of 2. When M=3, n=±1,±2,±3, are all zeros.

Several discrete-time sink functions

As a special case of the above for M=1, note that

(15)sin(πn)πn=δ[n]={1,n=00,n=±1,±2,±3,(Kronecker delta).

This is illustrated in the figure below.

Sinc - Kronecker delta equivalence

  1. Periodic sinc function.

Question. For the periodic sinc function

(16)X(f)=sin(πNf)sin(πf)

find the zeros and the amplitude at points where X(f)=00. Assume that N is an integer.

Answer. First observe that X(f) is periodic with period of 1. In other words, X(f+k)=X(f) for all integers k.

The numerator function sin(πNf) zeros will occur when

(17)πNf=πkorNf=k,k{,2,1,0,1,2,}.

The demoninator function sin(πf) zeros will occur when

(18)πf=πkorf=k,{,2,1,0,1,2,}.

The X(f)=00 condition occurs when both Nf and f are integers, which occurs whenever f is an integer. The value of the X(f) for integer f may be obtained using L'Hopital's Rule,

(19)X(f)|f=0=sin(πNf)sin(πf)|f=0=πNsin(πNf)πsin(πf)|f=0=N.

X(f) takes on the same valueu N for all integers f.

The set of candidate zeros for X(f) are Nf=k or f=k/N for integer k. Since we know that X(f)=N when f is an integer, we find that there are N1 zeros of X(f) in every period. In the base period 0f<1, the zeros occur at f=1N,2N,,N1N. The zeros in the mth period occur at f=1N+m,2N+m,,N1N+m , where m is any integer. For reference, two periods 1f<1 of the periodic sinc function for N=5,9,21 are shown in the figure below.

Periodic sincs for several different values of N

  1. Complex exponential signals.

The figure below shows eight different complex exponential signals of the form anu[n]. Match up the signals with the a values in the complex plane shown below.

complex exponential waveforms

poles in the complex plane

  1. Complex exponential signals.

Consider the complex exponential signal x[n]=ej2π38.9n.

  1. Sketch a picture of the following types of signals.

  1. Sifting property of Kronecker delta.

Question.

(20)x[n]δ[n85]=?

Answer.

(21)x[n]δ[n85]=x[85]δ[n85]
  1. Convolution property of Kronecker delta.

Question.

(22)x[n]δ[n85]=?

Answer.

(23)x[n]δ[n85]=x[n85]