<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
  <channel>
    <link>http://www.mathworks.nl/matlabcentral/newsreader/view_thread/320241</link>
    <title>MATLAB Central Newsreader - need to compute this problem having problems with how to start this problem help need urgently</title>
    <description>Feed for thread: need to compute this problem having problems with how to start this problem help need urgently</description>
    <language>en-us</language>
    <copyright>&amp;copy;1994-2013 by MathWorks, Inc.</copyright>
    <webmaster>webmaster@mathworks.com</webmaster>
    <generator>MATLAB Central Newsreader</generator>
    <docs>http://blogs.law.harvard.edu/tech/rss</docs>
    <ttl>60</ttl>
    <image>
      <title>MathWorks</title>
      <url>http://www.mathworks.nl/images/membrane_icon.gif</url>
    </image>
    <item>
      <pubDate>Sun, 20 May 2012 13:00:09 +0000</pubDate>
      <title>need to compute this problem having problems with how to start this problem help need urgently</title>
      <link>http://www.mathworks.nl/matlabcentral/newsreader/view_thread/320241#877346</link>
      <author>pramod kumar</author>
      <description>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 phase-shifted sinusoid.X(t) = A* � cos(t +theta �):&lt;br&gt;
State also if X(t) is Wide Sense Stationary (WSS).&lt;br&gt;
plot 10 realisations of X(t)&lt;br&gt;
plotR(s-t,0)as a function of s-t</description>
    </item>
    <item>
      <pubDate>Sun, 20 May 2012 13:16:07 +0000</pubDate>
      <title>Re: need to compute this problem having problems with how to start this problem help need urgently</title>
      <link>http://www.mathworks.nl/matlabcentral/newsreader/view_thread/320241#877347</link>
      <author>John D'Errico</author>
      <description>"pramod kumar" &amp;lt;pramod.kilu@gmail.com&amp;gt; wrote in message &amp;lt;jpapso$44b$1@newscl01ah.mathworks.com&amp;gt;...&lt;br&gt;
&amp;gt; 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 phase-shifted sinusoid.X(t) = A* � cos(t +theta �):&lt;br&gt;
&amp;gt; State also if X(t) is Wide Sense Stationary (WSS).&lt;br&gt;
&amp;gt; plot 10 realisations of X(t)&lt;br&gt;
&amp;gt; plotR(s-t,0)as a function of s-t&lt;br&gt;
&lt;br&gt;
So what have you tried? If you have not tried anything,&lt;br&gt;
this is a suggestion that you were not paying attention&lt;br&gt;
in class.&lt;br&gt;
&lt;br&gt;
Make an effort.&lt;br&gt;
&lt;br&gt;
John</description>
    </item>
    <item>
      <pubDate>Sun, 20 May 2012 14:33:07 +0000</pubDate>
      <title>Re: need to compute this problem having problems with how to start this problem help need urgently</title>
      <link>http://www.mathworks.nl/matlabcentral/newsreader/view_thread/320241#877348</link>
      <author>Matt J </author>
      <description>"pramod kumar" &amp;lt;pramod.kilu@gmail.com&amp;gt; wrote in message &amp;lt;jpapso$44b$1@newscl01ah.mathworks.com&amp;gt;...&lt;br&gt;
&amp;gt; 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 phase-shifted sinusoid.X(t) = A* � cos(t +theta �):&lt;br&gt;
=============&lt;br&gt;
&lt;br&gt;
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&lt;br&gt;
&lt;br&gt;
E[X(t)]=E[A] *E[cos(t+theta)] = E[cos(t+theta)] </description>
    </item>
    <item>
      <pubDate>Sun, 20 May 2012 14:40:09 +0000</pubDate>
      <title>Re: need to compute this problem having problems with how to start this problem help need urgently</title>
      <link>http://www.mathworks.nl/matlabcentral/newsreader/view_thread/320241#877349</link>
      <author>pramod kumar</author>
      <description>"Matt J" wrote in message &amp;lt;jpavb2$o7h$1@newscl01ah.mathworks.com&amp;gt;...&lt;br&gt;
&amp;gt; "pramod kumar" &amp;lt;pramod.kilu@gmail.com&amp;gt; wrote in message &amp;lt;jpapso$44b$1@newscl01ah.mathworks.com&amp;gt;...&lt;br&gt;
&amp;gt; &amp;gt; 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 phase-shifted sinusoid.X(t) = A* � cos(t +theta �):&lt;br&gt;
&amp;gt; =============&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; 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&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; E[X(t)]=E[A] *E[cos(t+theta)] = E[cos(t+theta)] &lt;br&gt;
&lt;br&gt;
i have tried this code after that what should i do &lt;br&gt;
clear all &lt;br&gt;
close all&lt;br&gt;
&amp;nbsp;clc&lt;br&gt;
N=10;&lt;br&gt;
% t=0:1:N-1;&lt;br&gt;
t=linspace(-1,1,N-1);&lt;br&gt;
A=exprnd(1);&lt;br&gt;
theta=2*pi*rand(10,1);&lt;br&gt;
y=A*cos(theta);&lt;br&gt;
%Xt=(A*cosint(t+theta));</description>
    </item>
    <item>
      <pubDate>Sun, 20 May 2012 14:58:09 +0000</pubDate>
      <title>Re: need to compute this problem having problems with how to start this problem help need urgently</title>
      <link>http://www.mathworks.nl/matlabcentral/newsreader/view_thread/320241#877353</link>
      <author>Matt J </author>
      <description>"pramod kumar" &amp;lt;pramod.kilu@gmail.com&amp;gt; wrote in message &amp;lt;jpavo9$pni$1@newscl01ah.mathworks.com&amp;gt;...&lt;br&gt;
&amp;gt; "Matt J" wrote in message &amp;lt;jpavb2$o7h$1@newscl01ah.mathworks.com&amp;gt;...&lt;br&gt;
&amp;gt; &amp;gt; "pramod kumar" &amp;lt;pramod.kilu@gmail.com&amp;gt; wrote in message &amp;lt;jpapso$44b$1@newscl01ah.mathworks.com&amp;gt;...&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; 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 phase-shifted sinusoid.X(t) = A* � cos(t +theta �):&lt;br&gt;
&amp;gt; &amp;gt; =============&lt;br&gt;
&amp;gt; &amp;gt; &lt;br&gt;
&amp;gt; &amp;gt; 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&lt;br&gt;
&amp;gt; &amp;gt; &lt;br&gt;
&amp;gt; &amp;gt; E[X(t)]=E[A] *E[cos(t+theta)] = E[cos(t+theta)] &lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; i have tried this code after that what should i do &lt;br&gt;
&amp;gt; clear all &lt;br&gt;
&amp;gt; close all&lt;br&gt;
&amp;gt;  clc&lt;br&gt;
&amp;gt; N=10;&lt;br&gt;
&amp;gt; % t=0:1:N-1;&lt;br&gt;
&amp;gt; t=linspace(-1,1,N-1);&lt;br&gt;
&amp;gt; A=exprnd(1);&lt;br&gt;
&amp;gt; theta=2*pi*rand(10,1);&lt;br&gt;
&amp;gt; y=A*cos(theta);&lt;br&gt;
&lt;br&gt;
This looks like it should be&lt;br&gt;
&lt;br&gt;
y=A*cos(t+theta);&lt;br&gt;
&lt;br&gt;
You should do this 10 more times to obtain the 10 realizations asked for.&lt;br&gt;
You should then use the PLOT command to start making the plots requested in the exercise. </description>
    </item>
    <item>
      <pubDate>Sun, 20 May 2012 17:46:07 +0000</pubDate>
      <title>Re: need to compute this problem having problems with how to start this problem help need urgently</title>
      <link>http://www.mathworks.nl/matlabcentral/newsreader/view_thread/320241#877368</link>
      <author>pramod kumar</author>
      <description>clear all, close all&lt;br&gt;
realizations=10;&lt;br&gt;
N=1;&lt;br&gt;
%a.plot 10 realisations of X(t)&lt;br&gt;
for i=1:realizations&lt;br&gt;
theta=2*pi*rand(N,1);&lt;br&gt;
t=0:0.0001:4*pi;&lt;br&gt;
A=exprnd(1,N,1);&lt;br&gt;
Xt=A*cos(t+theta);&lt;br&gt;
plot(t,Xt); hold on;&lt;br&gt;
end&lt;br&gt;
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 </description>
    </item>
    <item>
      <pubDate>Sun, 20 May 2012 18:02:05 +0000</pubDate>
      <title>Re: need to compute this problem having problems with how to start this problem help need urgently</title>
      <link>http://www.mathworks.nl/matlabcentral/newsreader/view_thread/320241#877369</link>
      <author>Matt J </author>
      <description>"pramod kumar" &amp;lt;pramod.kilu@gmail.com&amp;gt; wrote in message &amp;lt;jpbakv$7mo$1@newscl01ah.mathworks.com&amp;gt;...&lt;br&gt;
&amp;gt; clear all, close all&lt;br&gt;
&amp;gt; realizations=10;&lt;br&gt;
&amp;gt; N=1;&lt;br&gt;
&amp;gt; %a.plot 10 realisations of X(t)&lt;br&gt;
&amp;gt; for i=1:realizations&lt;br&gt;
&amp;gt; theta=2*pi*rand(N,1);&lt;br&gt;
&amp;gt; t=0:0.0001:4*pi;&lt;br&gt;
&amp;gt; A=exprnd(1,N,1);&lt;br&gt;
&amp;gt; Xt=A*cos(t+theta);&lt;br&gt;
&amp;gt; plot(t,Xt); hold on;&lt;br&gt;
&amp;gt; end&lt;br&gt;
&amp;gt; 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 &lt;br&gt;
===========&lt;br&gt;
&lt;br&gt;
The PLOT command only offers 8 different colors, but you can alternate both colors and line styles using something like the following:&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
plotcolors={'r','b','g','m','k',  'r*','b*','g*','m*','k*'};&lt;br&gt;
&lt;br&gt;
clear all, close all&lt;br&gt;
realizations=10;&lt;br&gt;
N=1;&lt;br&gt;
%a.plot 10 realisations of X(t)&lt;br&gt;
for i=1:realizations&lt;br&gt;
theta=2*pi*rand(N,1);&lt;br&gt;
t=0:0.0001:4*pi;&lt;br&gt;
A=exprnd(1,N,1);&lt;br&gt;
Xt=A*cos(t+theta);&lt;br&gt;
plot(t,Xt,plotcolors{i}); hold on;&lt;br&gt;
end</description>
    </item>
    <item>
      <pubDate>Sun, 20 May 2012 18:27:07 +0000</pubDate>
      <title>Re: need to compute this problem having problems with how to start this problem help need urgently</title>
      <link>http://www.mathworks.nl/matlabcentral/newsreader/view_thread/320241#877371</link>
      <author>pramod kumar</author>
      <description>thank you &lt;br&gt;
for your help &lt;br&gt;
&amp;nbsp;do u have any idea about this problem &lt;br&gt;
Let Y (t) be a short-term discounted average of the process X(t), i.e.&lt;br&gt;
Y (t) =1\(1-e^-T)*integral(e^-(t-s)X(s)ds(intergral ranges from t-T,t)&lt;br&gt;
&lt;br&gt;
for some �xed T &amp;gt; 0.&lt;br&gt;
(a) Find the impulse response h(tou� ) of this �lter and the corresponding transfer function H(f).&lt;br&gt;
i have developed this code &lt;br&gt;
clear all, close all&lt;br&gt;
realizations=10;&lt;br&gt;
N=1;&lt;br&gt;
%a.plot 10 realisations of X(t)&lt;br&gt;
for i=1:realizations&lt;br&gt;
theta=2*pi*rand(N,1);&lt;br&gt;
t=0:0.0001:4*pi;&lt;br&gt;
A=exprnd(1,N,1);&lt;br&gt;
Yt=(1\(1-e^-T))*expint(X(s));&lt;br&gt;
plot(t,Xt); hold on;&lt;br&gt;
end&lt;br&gt;
but the integral and exponential values i could not find it exactly </description>
    </item>
  </channel>
</rss>
