<< Chapter < Page | Chapter >> Page > |
The initial condition issue resolves making sense of the difference equation for inputs that start at some index.However, the program will not work because of a programming, not conceptual, error. What is it? How can it be "fixed?"
The indices can be negative, and this condition is not allowed in MATLAB. To fix it, we must start the signalslater in the array.
Let's consider the simple system having and .
To compute the output at some index, this difference equationsays we need to know what the previous output and what the input signal is at that moment of time. In moredetail, let's compute this system's output to a unit-sample input: . Because the input is zero for negative indices, we start by trying to compute the output at .
: | : | |
Coefficient values determine how the output behaves. The parameter can be any value, and serves as a gain. The effect of the parameter is more complicated ( [link] ). If it equals zero, the output simply equals the input times the gain . For all non-zero values of , the output lasts forever; such systems are said to be IIR ( I nfinite I mpulse R esponse). The reason for this terminology is that the unit sample also known as the impulse(especially in analog situations), and the system's response to the "impulse" lasts forever. If is positive and less than one, the output is a decaying exponential. When , the output is a unit step. If is negative and greater than , the output oscillates while decaying exponentially. When , the output changes sign forever, alternating between and . More dramatic effects when ; whether positive or negative, the output signal becomes largerand larger, growing exponentially.
Positive values of are used in population models to describe how population size increasesover time. Here, might correspond to generation. The difference equation says thatthe number in the next generation is some multiple of the previous one. If this multiple is less than one, thepopulation becomes extinct; if greater than one, the population flourishes. The same difference equation alsodescribes the effect of compound interest on deposits. Here, indexes the times at which compounding occurs (daily, monthly, etc.), equals the compound interest rate plus one, and (the bank provides no gain). In signal processingapplications, we typically require that the output remain bounded for any input. For our example, that means that we restrict and choose values for it and the gain according to the application.
Note that the difference equation , does not involve terms like or on the equation's right side. Can such terms also be included? Why or why not?
Such terms would require the system to know what future input or output values would be before the current value wascomputed. Thus, such terms can cause difficulties.
A somewhat different system has no " " coefficients. Consider the difference equation
Notification Switch
Would you like to follow the 'Ece 454 and ece 554 supplemental reading' conversation and receive update notifications?