<< Chapter < Page | Chapter >> Page > |
The following two continuous-time systems are commonlyused in electrical engineering:
For each of these two systems, do the following:
One reason that digital signal processing (DSP) techniques are so powerful is thatthey can be used for very different kinds of signals. While most continuous-time systems only process voltage and current signals,a computer can process discrete-time signals which are essentially just sequences of numbers.Therefore DSP may be used in a very wide range of applications. Let's look at an example.
A stockbroker wants to see whether the average value of a certain stock is increasing or decreasing.To do this, the daily fluctuations of the stock values must be eliminated.A popular business magazine recommends three possible methods for computing this average.
Do the following:
Write two Matlab functions that will apply the differentiator and integrator systems, designed in the "Example Discrete-time Systems" section, to arbitrary input signals. Then apply the differentiator and integrator to the followingtwo signals for .
Hint:
To compute the function
for
,
first set
n = -10:20
, and then use the
Boolean expression
u = (n>=0)
.
For each of the four cases, use the subplot and stem commands to plot each input and output signal on a single figure.
In this section, we will study the effect of two discrete-time filters.The first filter, , obeys the difference equation
and the second filter, , obeys the difference equation
Write Matlab functions to implement each of these filters.
y=zeros(1,N)
before entering the loop,
where
N
is the final length of
y
.
For long signals, this speeds up the computation dramatically.Notification Switch
Would you like to follow the 'Purdue digital signal processing labs (ece 438)' conversation and receive update notifications?