http://nl.mathworks.com/matlabcentral/newsreader/view_thread/320241
MATLAB Central Newsreader  need to compute this problem having problems with how to start this problem help need urgently
Feed for thread: need to compute this problem having problems with how to start this problem help need urgently
enus
©19942017 by MathWorks, Inc.
webmaster@mathworks.com
MATLAB Central Newsreader
http://blogs.law.harvard.edu/tech/rss
60
MathWorks
http://nl.mathworks.com/images/membrane_icon.gif

Sun, 20 May 2012 13:00:09 +0000
need to compute this problem having problems with how to start this problem help need urgently
http://nl.mathworks.com/matlabcentral/newsreader/view_thread/320241#877346
pramod kumar
Let � � U[0; 2theta�] be a uniform random variable from the interval [0; 2theta�] and let A � Exp(1) be exponentially distributed with mean 1. Assume � and A independent. Compute the mean mX(t) =E[X(t)] and autocorrelation RX(s; t) = E[X(s)X(t)] of the phaseshifted sinusoid.X(t) = A* � cos(t +theta �):<br>
State also if X(t) is Wide Sense Stationary (WSS).<br>
plot 10 realisations of X(t)<br>
plotR(st,0)as a function of st

Sun, 20 May 2012 13:16:07 +0000
Re: need to compute this problem having problems with how to start this problem help need urgently
http://nl.mathworks.com/matlabcentral/newsreader/view_thread/320241#877347
John D'Errico
"pramod kumar" <pramod.kilu@gmail.com> wrote in message <jpapso$44b$1@newscl01ah.mathworks.com>...<br>
> Let � � U[0; 2theta�] be a uniform random variable from the interval [0; 2theta�] and let A � Exp(1) be exponentially distributed with mean 1. Assume � and A independent. Compute the mean mX(t) =E[X(t)] and autocorrelation RX(s; t) = E[X(s)X(t)] of the phaseshifted sinusoid.X(t) = A* � cos(t +theta �):<br>
> State also if X(t) is Wide Sense Stationary (WSS).<br>
> plot 10 realisations of X(t)<br>
> plotR(st,0)as a function of st<br>
<br>
So what have you tried? If you have not tried anything,<br>
this is a suggestion that you were not paying attention<br>
in class.<br>
<br>
Make an effort.<br>
<br>
John

Sun, 20 May 2012 14:33:07 +0000
Re: need to compute this problem having problems with how to start this problem help need urgently
http://nl.mathworks.com/matlabcentral/newsreader/view_thread/320241#877348
Matt J
"pramod kumar" <pramod.kilu@gmail.com> wrote in message <jpapso$44b$1@newscl01ah.mathworks.com>...<br>
> Let � � U[0; 2theta�] be a uniform random variable from the interval [0; 2theta�] and let A � Exp(1) be exponentially distributed with mean 1. Assume � and A independent. Compute the mean mX(t) =E[X(t)] and autocorrelation RX(s; t) = E[X(s)X(t)] of the phaseshifted sinusoid.X(t) = A* � cos(t +theta �):<br>
=============<br>
<br>
How to start it? OK, you've been asked to compute the mean of X(t) and you've been told that A is independent of all other variables in the problem. So because of this independence and because E[A]=1<br>
<br>
E[X(t)]=E[A] *E[cos(t+theta)] = E[cos(t+theta)]

Sun, 20 May 2012 14:40:09 +0000
Re: need to compute this problem having problems with how to start this problem help need urgently
http://nl.mathworks.com/matlabcentral/newsreader/view_thread/320241#877349
pramod kumar
"Matt J" wrote in message <jpavb2$o7h$1@newscl01ah.mathworks.com>...<br>
> "pramod kumar" <pramod.kilu@gmail.com> wrote in message <jpapso$44b$1@newscl01ah.mathworks.com>...<br>
> > Let � � U[0; 2theta�] be a uniform random variable from the interval [0; 2theta�] and let A � Exp(1) be exponentially distributed with mean 1. Assume � and A independent. Compute the mean mX(t) =E[X(t)] and autocorrelation RX(s; t) = E[X(s)X(t)] of the phaseshifted sinusoid.X(t) = A* � cos(t +theta �):<br>
> =============<br>
> <br>
> How to start it? OK, you've been asked to compute the mean of X(t) and you've been told that A is independent of all other variables in the problem. So because of this independence and because E[A]=1<br>
> <br>
> E[X(t)]=E[A] *E[cos(t+theta)] = E[cos(t+theta)] <br>
<br>
i have tried this code after that what should i do <br>
clear all <br>
close all<br>
clc<br>
N=10;<br>
% t=0:1:N1;<br>
t=linspace(1,1,N1);<br>
A=exprnd(1);<br>
theta=2*pi*rand(10,1);<br>
y=A*cos(theta);<br>
%Xt=(A*cosint(t+theta));

Sun, 20 May 2012 14:58:09 +0000
Re: need to compute this problem having problems with how to start this problem help need urgently
http://nl.mathworks.com/matlabcentral/newsreader/view_thread/320241#877353
Matt J
"pramod kumar" <pramod.kilu@gmail.com> wrote in message <jpavo9$pni$1@newscl01ah.mathworks.com>...<br>
> "Matt J" wrote in message <jpavb2$o7h$1@newscl01ah.mathworks.com>...<br>
> > "pramod kumar" <pramod.kilu@gmail.com> wrote in message <jpapso$44b$1@newscl01ah.mathworks.com>...<br>
> > > Let � � U[0; 2theta�] be a uniform random variable from the interval [0; 2theta�] and let A � Exp(1) be exponentially distributed with mean 1. Assume � and A independent. Compute the mean mX(t) =E[X(t)] and autocorrelation RX(s; t) = E[X(s)X(t)] of the phaseshifted sinusoid.X(t) = A* � cos(t +theta �):<br>
> > =============<br>
> > <br>
> > How to start it? OK, you've been asked to compute the mean of X(t) and you've been told that A is independent of all other variables in the problem. So because of this independence and because E[A]=1<br>
> > <br>
> > E[X(t)]=E[A] *E[cos(t+theta)] = E[cos(t+theta)] <br>
> <br>
> i have tried this code after that what should i do <br>
> clear all <br>
> close all<br>
> clc<br>
> N=10;<br>
> % t=0:1:N1;<br>
> t=linspace(1,1,N1);<br>
> A=exprnd(1);<br>
> theta=2*pi*rand(10,1);<br>
> y=A*cos(theta);<br>
<br>
This looks like it should be<br>
<br>
y=A*cos(t+theta);<br>
<br>
You should do this 10 more times to obtain the 10 realizations asked for.<br>
You should then use the PLOT command to start making the plots requested in the exercise.

Sun, 20 May 2012 17:46:07 +0000
Re: need to compute this problem having problems with how to start this problem help need urgently
http://nl.mathworks.com/matlabcentral/newsreader/view_thread/320241#877368
pramod kumar
clear all, close all<br>
realizations=10;<br>
N=1;<br>
%a.plot 10 realisations of X(t)<br>
for i=1:realizations<br>
theta=2*pi*rand(N,1);<br>
t=0:0.0001:4*pi;<br>
A=exprnd(1,N,1);<br>
Xt=A*cos(t+theta);<br>
plot(t,Xt); hold on;<br>
end<br>
by using this code i have calculated 10 iterations please let me know for each realization i would like to have different colur so let me know how can i plot this in different colors

Sun, 20 May 2012 18:02:05 +0000
Re: need to compute this problem having problems with how to start this problem help need urgently
http://nl.mathworks.com/matlabcentral/newsreader/view_thread/320241#877369
Matt J
"pramod kumar" <pramod.kilu@gmail.com> wrote in message <jpbakv$7mo$1@newscl01ah.mathworks.com>...<br>
> clear all, close all<br>
> realizations=10;<br>
> N=1;<br>
> %a.plot 10 realisations of X(t)<br>
> for i=1:realizations<br>
> theta=2*pi*rand(N,1);<br>
> t=0:0.0001:4*pi;<br>
> A=exprnd(1,N,1);<br>
> Xt=A*cos(t+theta);<br>
> plot(t,Xt); hold on;<br>
> end<br>
> by using this code i have calculated 10 iterations please let me know for each realization i would like to have different colur so let me know how can i plot this in different colors <br>
===========<br>
<br>
The PLOT command only offers 8 different colors, but you can alternate both colors and line styles using something like the following:<br>
<br>
<br>
plotcolors={'r','b','g','m','k', 'r*','b*','g*','m*','k*'};<br>
<br>
clear all, close all<br>
realizations=10;<br>
N=1;<br>
%a.plot 10 realisations of X(t)<br>
for i=1:realizations<br>
theta=2*pi*rand(N,1);<br>
t=0:0.0001:4*pi;<br>
A=exprnd(1,N,1);<br>
Xt=A*cos(t+theta);<br>
plot(t,Xt,plotcolors{i}); hold on;<br>
end

Sun, 20 May 2012 18:27:07 +0000
Re: need to compute this problem having problems with how to start this problem help need urgently
http://nl.mathworks.com/matlabcentral/newsreader/view_thread/320241#877371
pramod kumar
thank you <br>
for your help <br>
do u have any idea about this problem <br>
Let Y (t) be a shortterm discounted average of the process X(t), i.e.<br>
Y (t) =1\(1e^T)*integral(e^(ts)X(s)ds(intergral ranges from tT,t)<br>
<br>
for some �xed T > 0.<br>
(a) Find the impulse response h(tou� ) of this �lter and the corresponding transfer function H(f).<br>
i have developed this code <br>
clear all, close all<br>
realizations=10;<br>
N=1;<br>
%a.plot 10 realisations of X(t)<br>
for i=1:realizations<br>
theta=2*pi*rand(N,1);<br>
t=0:0.0001:4*pi;<br>
A=exprnd(1,N,1);<br>
Yt=(1\(1e^T))*expint(X(s));<br>
plot(t,Xt); hold on;<br>
end<br>
but the integral and exponential values i could not find it exactly