Time series analysis
The R- code for all both (a) and (b) is as follows
n<-100
xt<-rep(0,n)
yt<-rep(0,n)
zt<-rep(0,n)
vt<-rep(0,n)
for(i in 1:n)
{
xt[i]<-2*cos(2*pi*0.06*i)+3*sin(2*pi*0.06*i)
yt[i]<-2*cos(2*pi*0.06*i)+3*sin(2*pi*0.06*i)
zt[i]<-2*cos(2*pi*0.06*i)+3*sin(2*pi*0.06*i)
vt[i]<-xt[i]+yt[i]+zt[i]
}
ts.plot(xt)
ts.plot(yt)
ts.plot(zt)
ts.plot(vt)
spectrum(vt)
#Let at=wt+vt, where wt ~ N(0,25)
at<-vt+rnorm(n,0,5)
spectrum(at)
The time series plots for xt, yt, zt, vt are as follows
The periodogram for series Vt is obtained as
For the series Vt + Wt, where Wt ~ N(0,25) the periodogram is obtained as -
2. Set n 100 and generate and plot the time series xt 2 cos(2π.06t) + 3 sin(2π.06t) Ý,-4 cos(2n. ...
Its related to MATLAB Generate a continuous-time signal z(t)-cos(2π 10t + 5) + cos(2π30t + 5). You may use the part of the followings. a >>t0:0.001:1; >plot (t, x_t) b. Generate a discrete-time signal x[n] = (1/4)(u[n]-u[n-4). You may use the part of the followings >>a_n-ones (1, 4) s> b_nzeros (1, 7) >> stem(n, x n) Generate a continuous-time signal z(t)-cos(2π 10t + 5) + cos(2π30t + 5). You may use the part of the followings. a >>t0:0.001:1; >plot (t,...
Find the discrete-time Fourier Series for the following periodic signals: 3. 4 cos 2.4n n + 2 sin 3.2n n x[n] a. xn 0 12 15 6 b. xn 2N No 2N C.
2. Consider the following sequence x(n) = cos (2n/3)sin(2ton/5). a. Is the sequence periodic? If yes, what is the period? If no, why not? Note: you need to show your work analytically but you can verify that your answer is correct by sketching the sequence using Matlab b. Find and sketch the complex exponential Fourier series coefficients (Magnitude and Phase). Verify using Matlab. Include code and graphics.
5. (4 points) Let x1 [n] be a discrete-time signal defined as 21 [n] = 2e-n/4u[n], n e Z, and u[n] is the unit step sequence. Mark all of the true statements. (xv) x1[-n] = 2er/4uſ-n]. (xvi) O x1[n] is real valued. (xvii) O x1[n] is neither purely odd nor purely even, but it is periodic. (xviii) O x1[-n] = -2er/4u[-n]. 6. (4 points) Similarly, 22[n] = 2e-4nu[n], n e Z. Mark all of the true statements. (xix) O Pæ{rz[n]...
Signals and Systems: Discrete time Fourier Series: If: 1. Please find the F.S. representation of x[n] 2. Please plot the amplitude spectrum 3. What is the fundamental frequency of x[n]? 4. How many distinct harmonics can be present in x[n]?--for this fundamental frequency. 5. How many harmonics are actually in x[n]? Trying to prepare for finals, its crunch time, thank you for your help! r[n] = 2sin(n-) + cos(n-) r[n] = 2sin(n-) + cos(n-)
1. Using the Fourier series analysis Equation 3 for the periodic function r(t) shown in Figure 2.1, determine both the DC coefficient ao and a general expression for the other Fourier series coefficients ak. Do this by hand, not in Matlab. Show all your work in your lab report. You can add these pages as hand-written pages, rather than typing them in to your lab report, if you prefer Hint 1: It will be easiest to integrate this function from...