Signals
Signals
1 What is a Signal
We are all immersed in a sea of signals. All of us from the smallest living unit, a cell, to the most complex living organism(humans) are all time time receiving signals and are processing them. Survival of any living organism depends upon processing the signals appropriately. What is signal? To define this precisely is a difficult task. Anything which carries information is a signal. In this course we will learn some of the mathematical representations of the signals, which has been found very useful in making information processing systems. Examples of signals are human voice, chirping of birds, smoke signals, gestures (sign language), fragrances of the flowers. Many of our body functions are regulated by chemical signals, blind people use sense of touch. Bees communicate by their dancing pattern.Some examples of modern high speed signals are the voltage charger in a telephone wire, the electromagnetic field emanating from a transmitting antenna,variation of light intensity in an optical fiber. Thus we see that there is an almost endless variety of signals and a large number of ways in which signals are carried from on place to another place. In this course we will adopt the following definition for the signal: A signal is a real (or complex) valued function of one or more real variable(s). When the function depends on a single variable, the signal is said to be onedimensional. A speech signal, daily maximum temperature, annual rainfall at a place, are all examples of a one dimensional signal.When the function depends on two or more variables, the signal is said to be multidimensional. An image is representing the two dimensional signal,vertical and horizontal
coordinates representing the two dimensions. Our physical world is four dimensional(three spatial and one temporal).
(1) Flexibility: Same hardware can be used to do various kind of signal processing operation,while in the core of analog signal processing one has to design a system for each kind of operation. (2) Repeatability: The same signal processing operation can be repeated again and again giving same results, while in analog systems there may be parameter variation due to change in temperature or supply voltage. The choice between analog or digital signal processing depends on application. One has to compare design time,size and cost of the implementation.
the set in which t takes the value. Similarly for discrete time signal we will use the notation {x[n]}, where {x[n]} is short for {x[n], n_I}. Note that in {x(t)} and {x[n]} are dummy variables ie. {x[n]} and {x[t]} refer to the same signal. Some books use the notation x[] to denote {x[n]} and x[n] to denote value of x at time n x[n] refers to the whole waveform,while x [ n] refers to a particular value. Most of the books do not make this distinction clean and use x[n] to denote signal and x[n0] to denote a particular value. As with independent variable t, the dependent variable x can take values in a continues set or in a countable set. When both the dependent and independent variable take value in intervals, the signal is called an analog signal. When both the dependent and independent variables take values in countable sets(two sets can be quite different) the signal is called Digital signal.When we use digital computers to do processing we are doing digital signal processing. But most of the theory is for discrete time signal processing where default variable is continuous. This is because of the mathematical simplicity of discrete time signal processing. Also digital signal processing tries to implement this as closely as possible. Thus what we study is mostly discrete time signal processing and what is really implemented is digital signal processing. Exercise: 1.GIve examples of continues time signals. 2.Give examples of discrete time signals. 3.Give examples of signal where the independent variable is not time(onedimensional). 4.Given examples of signal where we have one independent variable but dependent variable has more than one dimension.(This is sometimes called vector valued signal or multichannel signal). 5.Give examples of signals where dependent variable is discrete but independent variable are continues. 3
Unit sample sequence is also known as impulse sequence. This plays role akin to the impulse function (t) of continues time. The continues time impulse (t) is purely a mathematical construct while in discrete time we can actually generate the impulse sequence. (b)Unit step sequence u[n]: Unit step sequence is defined by u[ n] = _ 1, n 0 0, n<0 Graphically this is as shown below u[ n]
1_ -3_ -2_ -1_ 0_ 1_ 2_ 3_ 4_ n_ ................._ .........._ ................_
(c) Exponential sequence: The complex exponential signal or sequence x [ n] is defined by x[n] = C n where C and are, in general, complex numbers. Note that by writing = e, we can write the exponential sequence as x[n] = c e n. 4 Real exponential signals: If C and are real, we can have one of the several type of behavior illustrated below
. . . . ._ . . . . ._
n_ {x[n]
. . . . ._ . . . . ._ . . . . ._ . . . . ._
n_ {x[n] n_
n_
{x[n] = n, < 1} if || > 1 the magnitude of the signals grows exponentially, whlie if || < 1, we have decaying exponential. If is positive all terms of {x[n]} have same sign, but if is negative the sign of terms in {x[n]} alternates. (d)Sinusoidal Signal: The sinusoidal signal {x[n]} is defined by x[n] = A cos(w0n + ) Eulers relation allows us to relate complex exponentials and sinusoids. ej w0n = cosw0n + j sinw0n and A cos(w0n + ) = A 2 ejej w0n + A 2 ej ejw0n The general discrete time complex exponential can be written in terms of real exponential and sinusiodal signals.Specifically if we write c and in polar for C = |C|ej and = ||ej w0 then C n = |C|||n cos(w0n + ) + j|C|||n sin(w0n + ) 5 Thus for || = 1, the real and imaginary parts of a cmplex exponential sequence are sinusoidal. For || < 1, they correspond to sinusoidal sequence multiplied by a decaying exponential, and for || > 1 they correspond to sinusiodal sequence multiplied by a growing exponential.
MATLAB, acronym for MATrix LABoratory has become a very porplar software environment for complex based study of signals and systems. Here we give some sample programmes to generate the elementary signals discussed above. For details one should consider MATLAB manual or read help files. In MATLAB, ones(M,N) is an M-by-N matrix of ones, and zeros(M,N) is an M-by-N matrix of zeros. We may use those two matrices to generate impulse and step sequence. The following is a program to generate and display impulse sequence.
>> % Program to generate and display impulse response sequence >> n = 49 : 49; >> delta = [zeros(1, 49), 1, zeros(1, 49)]; >> stem(n, delta) Here >> indicates the MATLAB prompt to type in a command, stem(n,x) depicts the data contained in vector x as a discrete time signal at time values defined by n. One can add title and lable the axes by suitable commands. To generate step sequence we can use the following program >> % Program to generate and display unit step function >> n = 49 : 49; >> u = [zeros(1, 49), ones(1, 50)]; >> stem(n, u); We can use the following program to generate real exponential sequence >> % Program to generate real exponential sequence >> C = 1; >> alpha = 0.8; >> n = 10 : 10; >> x = C alpha. n >> stem(n, x) Note that, in their program, the base alpha is a scalar but the exponent is a vector, hence use of the operator . to denote element-by-element power. Exercise: Experiment with this program by changing different values of alpha (real). Values of alpha greater then 1 will give growing exponential and less than 1 will give decaying exponentials. 6