Below is MAtlab Code:
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
close all,
clear all,
clc,
Fs=1000;
t = 0:(1/Fs):1-(1/Fs);
A=1;
F=10;
w = 2*pi*F;
b=pi;
a=-pi;
Xt=[];
Theta=[];
for n=1:Fs
Theta(n) = (b-a)*rand + a;
Xt(n) = A*cos(w*t(n)+Theta(n));
end
subplot(2,1,1); plot(Theta); str=strcat('Theta Plot between -pi to
pi'); title(str);
subplot(2,1,2); plot(Xt); str=strcat('Xt Plot at Fs =
',num2str(Fs),' Hz and Freq. of Signal = ',num2str(F),' Hz');
title(str);
MeanTheta = mean(Theta);
VarTheta = var(Theta);
MeanXt = mean(Xt);
PowerXt = sumsqr(Xt)/length(Xt);
[ACF, Lags, Bounds] = autocorr(Xt, [], 2);
disp(['Mean of Theta = ',num2str(MeanTheta)]);
disp(['Var. of Theta = ',num2str(VarTheta)]);
disp(['Mean of Xt = ',num2str(MeanXt)]);
disp(['Power of Xt = ',num2str(PowerXt)]);
disp(['AutoCorr. of Xt = ',num2str(ACF)]);
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Matlab Output
Mean of Theta = 0.040587
Var. of Theta = 3.2977
Mean of Xt = 0.0047037
Power of Xt = 0.49912
AutoCorr. of Xt = 1 0.051507 -0.018127 0.008337 -0.023698 0.0062431
0.0075699 -0.037567 -0.034422 -0.022629 0.0096917 -0.0034487
0.0007964 0.010817 -0.00454 0.037404 -0.033741 -0.057873 -0.017376
0.017305 -0.021233
>>
2. Consider the random process x(t) defined by x(t) a cos(wt + 6).where w and a...
2. Consider the random process x(t) defined by x(t) a cos(wt 6), where w and 0 are constants, and a is a random variable uniformly distributed in the range (-A, A). a. Sketch the ensemble (sample functions) representing x(t). (2.5 points). b. Find the mean and variance of the random variable a. (5 points). c. Find the mean of x(t), m(t) E((t)). (5 points). d. Find the autocorrelation of x(t), Ra (t1, t2) E(x (t)x2 )). (5 points). Is the...
Let a random process x(t) be defined by x(t) = At + B (a) If B is a constant and A is uniformly distributed between-1 and +1, sketch a few sample functions (b) If A is a constant and B is uniformly distributed between 0 and 2, sketch a few sample functions c) Evaluate (r2(t)) d) Evaluate x2(t) e) Using the results of part c) and d), determine whether the process is ergodic for the averages Let a random process...
Please solve this. 8.18 A discrete random process is defined by where φ is a uniform rndom variable in the range of-π to π. (a) Sketch a typical sample function of X b) Are its mean and variance constants (i.e., independent of k)7 (e) Is X Je] stationary (d) Is it mean ergodic? 8.18 A discrete random process is defined by where φ is a uniform rndom variable in the range of-π to π. (a) Sketch a typical sample function...
P9.3 A random process X(t) has the following member functions: x1 (t) -2 cos(t), x2(t)2 sin(t), x3(t)- 2 (cos(t) +sin(t)),x4t)cost) - sin(t), xst)sin(t) - cos(t).Each member function occurs with equal probability. (a) Find the mean function, Hx (t). (b) Find the autocorrelation function, Rx(t1,t2) (c) Is this process WSS? Is it stationary in the strict sense?
Consider a random process X(t) defined by X(t) - Ycoset, 0st where o is a constant 1. and Y is a uniform random variable over (0,1) (a) Classify X(t) (b) Sketch a few (at least three) typical sample function of X(t) (c) Determine the pdfs of X(t) at t 0, /4o, /2, o. (d) EX() (e) Find the autocorrelation function Rx(t,s) of X(t) (f) Find the autocovariance function Rx(t,s) of X(t) Consider a random process X(t) defined by X(t) -...
The sample function X(t) of a stationary random process Y(t) is given by X(t) = Y(t)sin(wt+Θ) where w is a constant, Y(t) and Θ are statistically independent, and Θ is uniformly distributed between 0 and 2π. Find the autocorrelation function of X(t) in terms of RYY(τ).
The random process X(t) is defined by X(t) = X cos 27 fot + Y sin 2 fot, where X and Y are two zero-mean Gaussian random variables, each with the variance 02. (a) Find ux(t) (b) Find RX(T). Is X(t) stationary? (c) Repeat (a) and (b) for 0 + 0
2. (30 points) Let X(t) be a wide-sense stationary (WSS) random signal with power spectral density S(f) = 1011(f/200), and let y(t) be a random process defined by Y(t) = 10 cos(2000nt + 1) where is a uniformly distributed random variable in the interval [ 027]. Assume that X(t) and Y(t) are independent. (a) Derive the mean and autocorrelation function of Y(t). Is Y(t) a WSS process? Why? (b) Define a random signal Z(t) = X(t)Y(t). Determine and sketch the...
A stochastic process X() is defined by where A is a Gaussian-distributed random variable of zero mean and variance σ·The process Xt) is applied to an ideal integrator, producing the output YO)X(r) dr a. Determine the probability density function of the output Y) at a particular time t b. Determine whether or not Y) is strictly stationary Continuing with Problem 4.3, detemine whether or not the integrator output YC) produced in response to the input process Xit) is ergodic. A...