Given the following second-order difference equation, \[\begin{aligned} y(n) & + 0.5 y(n-1) + 2 y(n-2) = \\ & = x(n) + 0.2 x(n-1) + 0.5 x(n-2),\end{aligned}\] find the first five output values starting at \(y(0)\), assuming that the input \(x(n)=1\) for all \(n\) and the output \(y(n)=0\) for all \(n<0\).
Given the following second-order difference equation, \[\begin{aligned} a_0 & y(n) + a_{1} y(n-1) + a_{2} y(n-2) = \\ & = b_{0} x(n) + b_{1} x(n-1) + b_{2} x(n-2),\end{aligned}\] find the discrete transfer function representation with constants \(a_n\) and \(b_n\).
Consider a continuous-time first-order system described by the transfer function, \[ \frac{Y(s)}{X(s)}=\frac{1}{\tau s +1}, \] where \(\tau\) is a constant.
Consider the following transfer function of a continuous-time system: \[H(s) =\frac{Y(s)}{X(s)}=10 \cdot\frac{10s+1}{100s+1}.\]
Using the difference equation found in exercise 6.3, determine the first five output values starting at \(y(0)\). Assume that the time constant \(\tau=2\), the sampling time \(T=1\), the input \(x(n)=1\) for all \(n\), and the output \(y(n)=0\) for all \(n<0\).
Using your knowledge of floating-point numbers, explain the following:
A continuous 1000-Hz sinusoidal signal is sampled (without anti-aliasing filters) with a sampling frequency of 498 Hz.
It is often necessary to measure the peak value of a transient (aperiodic) signal. For example, the signal might represent a mechanical variable such as a force, a pressure, or a temperature, that is the result of a singularity function input (e.g., step or impulse). Notice that, because the bandwidth of an aperiodic signal is infinite, the Nyquist-Shannon sampling theorem isn't directly applicable.
Consider a continuous transient signal that consists of a single half-cycle of a sine wave of frequency \(f = 1/T\), shown in figure 6.16.
Suppose that we wish to measure the peak value from a periodically sampled record of the continuous signal. The sampling begins at an arbitrary and unknown time \(t_0\). Assume that each point is sampled without error.
Our estimate of the peak value will be (simply) the largest value in the sampled record. Further suppose that we that we want the relative error of the peak estimate to be \(e\), where \(e\) is expressed as a fraction of the half-sine peak amplitude.
By what multiple must the sampling frequency \(f_s\) exceed the waveform frequency \(f\) such that the estimated error is guaranteed to be less than \(e\)?
As part of the control of a process, an analog signal is to be digitized at uniform intervals.
Suggest appropriate values for: