Write a Matlabprogram that generates and graphs the noisy cosine sample paths Xcc(t), Xdc(t), Xcd (t), and Xdd (t) of Figure 10.3. Note that the mathematical definition of Xcc(t) is

Note that N(t) is a white noise process with autocorrelation RN (τ ) = 0.01δ(τ ). Practically, the graph of Xcc(t) in Figure 10.3 is a sampled version Xcc[n] = Xcc(nTs) where the sampling period is Ts = 0.001s. In addition, the discrete-time functions are obtained by subsampling Xcc[n]. In subsampling, we generate Xdc[n] by extracting every kth sample of Xcc[n]; see Problem 10.9.4. In terms of Matlab, which starts indexing a vector x with first element x(1),

The discrete-time graphs of Figure 10.3 used k = 100.
Figure 10.3
