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
![](https://test.transtutors.com/qimg/d5f939e4-83b6-4c9f-82af-91084bf259d7.png)
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),
![](https://test.transtutors.com/qimg/cf97f264-c2e7-4778-ae53-da3efd7df0a1.png)
The discrete-time graphs of Figure 10.3 used k = 100.
Figure 10.3
![](https://test.transtutors.com/qimg/4b40c66d-49ce-4ecf-83ee-d7166eb33265.png)