f

#### need to compute this problem having problems with how to start this problem help need urgently

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 ):
State also if X(t) is Wide Sense Stationary (WSS).
plot 10 realisations of X(t)
plotR(s-t,0)as a function of s-t

 0
5/20/2012 1:00:09 PM
comp.soft-sys.matlab 211266 articles. 22 followers. lunamoonmoon (257) is leader.

7 Replies
4355 Views

Similar Articles

[PageSpeed] 24

"pramod kumar" <pramod.kilu@gmail.com> wrote in message <jpapso$44b$1@newscl01ah.mathworks.com>...
> 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 ):
> State also if X(t) is Wide Sense Stationary (WSS).
> plot 10 realisations of X(t)
> plotR(s-t,0)as a function of s-t

So what have you tried? If you have not tried anything,
this is a suggestion that you were not paying attention
in class.

Make an effort.

John

 0
woodchips (7944)
5/20/2012 1:16:07 PM
"pramod kumar" <pramod.kilu@gmail.com> wrote in message <jpapso$44b$1@newscl01ah.mathworks.com>...
> 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 ):
=============

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

E[X(t)]=E[A] *E[cos(t+theta)] = E[cos(t+theta)]

 0
mattjacREMOVE (3196)
5/20/2012 2:33:07 PM
"Matt J" wrote in message <jpavb2$o7h$1@newscl01ah.mathworks.com>...
> "pramod kumar" <pramod.kilu@gmail.com> wrote in message <jpapso$44b$1@newscl01ah.mathworks.com>...
> > 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 ):
> =============
>
> 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
>
> E[X(t)]=E[A] *E[cos(t+theta)] = E[cos(t+theta)]

i have tried this code after that what should i do
clear all
close all
clc
N=10;
% t=0:1:N-1;
t=linspace(-1,1,N-1);
A=exprnd(1);
theta=2*pi*rand(10,1);
y=A*cos(theta);
%Xt=(A*cosint(t+theta));

 0
5/20/2012 2:40:09 PM
"pramod kumar" <pramod.kilu@gmail.com> wrote in message <jpavo9$pni$1@newscl01ah.mathworks.com>...
> "Matt J" wrote in message <jpavb2$o7h$1@newscl01ah.mathworks.com>...
> > "pramod kumar" <pramod.kilu@gmail.com> wrote in message <jpapso$44b$1@newscl01ah.mathworks.com>...
> > > 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 ):
> > =============
> >
> > 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
> >
> > E[X(t)]=E[A] *E[cos(t+theta)] = E[cos(t+theta)]
>
> i have tried this code after that what should i do
> clear all
> close all
>  clc
> N=10;
> % t=0:1:N-1;
> t=linspace(-1,1,N-1);
> A=exprnd(1);
> theta=2*pi*rand(10,1);
> y=A*cos(theta);

This looks like it should be

y=A*cos(t+theta);

You should do this 10 more times to obtain the 10 realizations asked for.
You should then use the PLOT command to start making the plots requested in the exercise.

 0
mattjacREMOVE (3196)
5/20/2012 2:58:09 PM
clear all, close all
realizations=10;
N=1;
%a.plot 10 realisations of X(t)
for i=1:realizations
theta=2*pi*rand(N,1);
t=0:0.0001:4*pi;
A=exprnd(1,N,1);
Xt=A*cos(t+theta);
plot(t,Xt); hold on;
end
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

 0
5/20/2012 5:46:07 PM
"pramod kumar" <pramod.kilu@gmail.com> wrote in message <jpbakv$7mo$1@newscl01ah.mathworks.com>...
> clear all, close all
> realizations=10;
> N=1;
> %a.plot 10 realisations of X(t)
> for i=1:realizations
> theta=2*pi*rand(N,1);
> t=0:0.0001:4*pi;
> A=exprnd(1,N,1);
> Xt=A*cos(t+theta);
> plot(t,Xt); hold on;
> end
> 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
===========

The PLOT command only offers 8 different colors, but you can alternate both colors and line styles using something like the following:

plotcolors={'r','b','g','m','k',  'r*','b*','g*','m*','k*'};

clear all, close all
realizations=10;
N=1;
%a.plot 10 realisations of X(t)
for i=1:realizations
theta=2*pi*rand(N,1);
t=0:0.0001:4*pi;
A=exprnd(1,N,1);
Xt=A*cos(t+theta);
plot(t,Xt,plotcolors{i}); hold on;
end

 0
mattjacREMOVE (3196)
5/20/2012 6:02:05 PM
thank you
Let Y (t) be a short-term discounted average of the process X(t), i.e.
Y (t) =1\(1-e^-T)*integral(e^-(t-s)X(s)ds(intergral ranges from t-T,t)

for some xed T > 0.
(a) Find the impulse response h(tou ) of this lter and the corresponding transfer function H(f).
i have developed this code
clear all, close all
realizations=10;
N=1;
%a.plot 10 realisations of X(t)
for i=1:realizations
theta=2*pi*rand(N,1);
t=0:0.0001:4*pi;
A=exprnd(1,N,1);
Yt=(1\(1-e^-T))*expint(X(s));
plot(t,Xt); hold on;
end
but the integral and exponential values i could not find it exactly

 0
5/20/2012 6:27:07 PM

Similar Artilces:

problems problems problems
(The short(?) summary) I've got an Access MDB file and a DAO connect with it.. Problem 1 of 2 The below gives me a runtime error 91 Object variable or With block variable not set. I've got the db stuff after the form.show (to make sure all the objects on the form are loaded before attempting to utilize/manipulate them) But it doesn't like it when I use the data object in the form load anyway for some reason.. pffft. Private Sub Form_Load() frmTest1Project.Show datGallery.Recordset.MoveLast datGallery.Recordset.MoveFirst Call LockTextBoxes(frmTest...

Matlab Problem, Need Help Urgent
Consider the integral ∫0 e-x sin(2x) dx ∏/4 a) Use the trapezoidal rule, and Simpson’s rule to approximate the integral. b) Compute the exact error in each case of part (a), and compare the exact error to the error bound associated for each integration method used. Hint: Use function s=simprl(f,a,b,M) %Input - f is the integrand input as a string 'f' % - a and b are upper and lower limits of integration % - M is the number of subintervals %Output - s is the simpson rule sum h=(b-a)/(2*M); s1=0; s2=0; for k=1:M x=a+h*(2*k-1); s1=s1+feval(f,x); e...

Need Help to solve Matlab problem Urgently
Dear All, Anyone here can enlighten me where did i go wrong and how to amend my mistake in the matlab scripts (main script & function file), in order to get the plot out. Currently, there is no plot because there is an warning stating as Warning: Divide by zero. (Type "warning off MATLAB:divideByZero" to suppress this warning.) > In C:\MATLAB6p5\work\Assignment_Qn1new.m at line 44 Previous value q0 q1 q2 s ans = NaN NaN NaN NaN Latest value q0 q1 q2 s ans = NaN NaN NaN NaN My Matlab Main script are as follows: clear pack clc format long e M = 1601; % Number of...

Problems problems....
I've got Fujitsu MAN3184MP and Adaptec 29160 scsi card. Sometimes i have this message "A disk read error occured" , sometimes even bios does not recognize it, sometimes it does but the boot sequence does not start it seems that motherboard bios has problems with it ( so it seems to me, i could be wrong about that assumption) . Then i reset and it all works perfectly. I've noticed a speed degradation in Win XP lately. I'm angry :)) I have LVD/SE terminator, and i think 68pin cable ( not sure about that ). Hope i gave you enough info to try and help. Thanx! -- ----------------------------------- Makni #### iz adrese Seems obvious that the drive is going belly up. You could download the manufacture's utility disk and confirm it. I think time would more wisely be spent backing up your data before you can't read it at all. DaveL "biBU" <idolovcak####@inet.hr> wrote in message news:cuslus$ljq$1@fegnews.vip.hr... > I've got Fujitsu MAN3184MP and Adaptec 29160 scsi card. > > Sometimes i have this message "A disk read error occured" , sometimes even > bios does not recognize it, sometimes it does but the boot sequence does > not start it seems that motherboard bios has problems with it ( so it > seems to me, i could be wrong about that assumption) . Then i reset and it > all works perfectly. I've noticed a speed degradation in Win XP lately. > I'm angry :)) > > ...

Problem with a problem
Hello, take a grammar G with alphabet {0,1} such that (the word problem for) the language L_G={w in (0+1)*|w\in L(G)} is very complex, say in PSPACE or some higher complexity class. Now consider an "easy" problem EASY like: "Is an element of L_G in L_G?". Well, this seems to be fairly easy because the answer is "yes" in any case. Hence the problem should be of small complexity. But if one models such a decision problem one has to construct a language L with alphabet A such that the word problem for L reflects exactly the decision problem which one is interested...

Help needed on this 857W config. Repost to be clearer what the problems are and the help needed
Hi, Please see below config for my 857W. The basic topology is that I have one cisco857W and various servers and internal wired and wireless clients on the 192.168.0.0 255.255.255.0 network. There are a number of services running on the local lan, DNS and DHCP is also provided by a local server on the same subnet as the router. The 857W router sits on address 192.168.0.254 and needs to act as the local gateway for both wired and wireless clients. With this config booted on the router, the wireless clients can connect and authenticate and get allocated the correct DHCP information and ...

yahoo.com.au mail problems problems problems
Hello, in the last month I encountered big problems to read mail from yahoo.com.au server. There is no chance to connect to e-mail /www based server. Having logged to www.yahoo.com.au mail window doesn't open waiting for an image from au.adserver.yahoo.com server is that server dead, making reading mail completely impossible ? Ping says, that server is unreachable. What can I do to make things better as in previous months ? Ple ...

Need help with computer problem
Here's my problem: Sometimes webpages open fine and other times they won't open. At the bottom of the screen it will say "Done" but it will only be a blank white window. When I am able to get a webpage open, there are times when I can't open a link on that page; it will only open a blank window. I can't open links sent to me via email. To try to end run around that problem, I copy the URL for the link and try to paste it into the address space but the pull down menu won't give me the option to paste. Sometimes when I try to open a link in my email it even locks up...

help with problems on computability needed!!
Hi all, I was wondering if anyone would be able to help me with the following problems. I'm really bad at these... that's why I have to retake this course on computational theory and complexity... I could use any help I can get! First question: Consider a table whose rows are labelled with TMs, whose columns are labelled with TM encodings, and where the entry at (Mi, <Mj>) contains a 1 if Mi accepts <Mj> in at most |<Mj>|+t steps, and a 0 otherwise. Use a diagonalization argument to show that for every t, there exists a language L which is decidable in general, but not decidable with lag t. We say that a language L is decidable with lag t if there exists a TM M deciding L, which also satifies the requirement that on every input w, M halts in at most |w| + t steps. This second question is more tricky, I think: Let M1,M2, . . . ,Mi, . . . be the list of all TMs in lexicographical order. For every positive integer k, define f(k) to be the index in the above list of the k-th TM M such that L(M) = NULL. Formally, f(k) = max{i : there exists J, which is a subset of {1 . . . i - 1} such that (|J| = k - 1 and for all j belonging to {1 . . . i - 1}, L(Mj) = NULL iff j belongs to J)} Notice that f is well defined for every k, since there are infinitely many TMs M with L(M) = NULL. For example, if L(M2) = L(M5) = NULL and L(M1),L(M3),L(M4) are not empty, then f(1) = 2 and f(2) = 5. Prove that f is not computable. I hope these aren't too difficult, alt...

Some MATLAB problems....help needed.
Q1) WAP in MATLAB that will accept only positive integers and calculates Arithmatic and Geometric means.The program terminates when the user enters a -ve value.Use a while loop to get the inputs. Q2)Consider the following Eqation: N(i+1)=mod(8121N(i)+28411,134456) Using this eqation design a random number generatorwhose output is a real number in the range [0.0,1.0) Q3)Write a MATLAB function to calculate the running average and standard deviation of the data set as it is being entered. Q4) Write a MATLAB function "dice" that simulats the throw of a fair diceby returning a random...

Need matlab help
Hi, I am trying to solve an interesting problem. I have a handheld device that contains a basic 3d accelerometer. I am trying to determine the path that the device moves through the air and the timing associated with the device. Think of the device being moved like a tennis racket or golf club. Normally this would be a simple problem to solve as I have the acceleration data. THe complication is that the device swivels in the persons hand and so i do not really know which direction gravity is acting. I am trying to use Matlab to see if i can figure out the path or the timing (even just timi...

New To MATLAB and need help with this problem
I am new to Matlab so can someone help me write some code to find the area of my hand from data points only without using built in matlab functions. I know that you can use things like midpoint rule or trap but I dont have a function input Thank You given data that represents the shape of my hand I have to use possibly several numerical integration schemes to find the area Matt wrote: > I am new to Matlab so can someone help me write some code to find the > area of my hand from data points only without using built in matlab > functions. > I know that you can use things like midp...

Need help with some MATLAB coding problems
I have the following problems and no idea where to begin: 1) The function takes one string that contains two words separated by a space and returns true if the two words are identical (case sensitive).Otherwise, it should return false. Test Case: out1 = compareTwo('winner winner') out1 -> true 2) The function takes in a string which is a sentence of upper and lower case letters. The function then removes the upper case letters to reveal a secret message. The result should not contain any upper case letters. The result may contain lower case letters, spaces and numbers. Test Case: ...

Problem in code...Need help urgent
Hello, I wrote the same program twice. following are the two codes. The upper one (slower) performs correctly, while the lower one(faster) doesn't produce the same result! Can anybody look into the program! I cant figure out what's the problem in the lower code? Thanks! Yi %%%psi : 400x2x3350 deltax=deltay=1 ph_Tx ,ph_Rx : 1x3350 zeta:2x3350 %%%%%code 1 for ii = 1 : 400 for ll = 1 : 3350 gamma(ii,1,ll) = sinc(zeta(1,ll)*deltax*cos(ph_Tx(ll))/pi)* sinc(zeta(1,ll)*deltay*sin(ph_Tx(ll))/pi)*psi(ii,1,ll); gamma(ii,2,ll) = sinc(zeta(2,ll)*deltax*cos(p...

Need Help Urgently with Strange Problem
I am using Ahead Nero on a Win 2000 computer with Access 2000. I have a database we printed reports from that is sorted in a particular way. When I look at the report on the screen prior to burning a CD with Nero, the onscreen data matches the printed copy. After I burn the CD, and without doing ANYTHING to the database but open it back up, the fields not included in Sorting and Grouping change their order. The onscreen reports (which the client wants to see along with the printed copies) do not match the printouts and I have no idea how to bring them back, since the sort of those fields appears to be completely random. What's really bizarre is that the local copy is "messed up" the same way as the CD copy. Does anyone have any idea what's going on here? Has anyone else had this problem with Nero? Thanks in advance, Janet Aldrich Janet, I've not heard of this problem before, but you may want to 1) try out a different burning product; for instance, try Windows' integrated burning program; 2) make sure you have the latest version of Nero (www.ahead.de). If you are still getting the same problem when burning with a different burning utility, you'll at least know that it's got to do with either your burner or Windows itself. I can't claim to know much about Nero, but I do know that Access doesn't guarantee the sort order of unsorted fields. If there's a particular sort order you want to return, define it in your report,...

Urgent
Hi, I need help urgently......... My current os is WinXp Home (SP2). Everytime when during the windows start-up, it always appear the following message: Windows - No Disk X There is no disk in the drive. Please insert a disk into drive A: Cancel Try Again Continue Under the Taskbar, is shown my firewall "No firewall is turned on" After I click on the continue box, the error message disappeared and firewall auto ON back again. Pls kind enoguh to email me your reply to skyvansg@yahoo.com.sg greatly appreciated your kind assistance. ...

need help urgent in stat problem
how to build the model and program it in sas : in each subject, 4 measures are done. - 1t at time 1 and 2nd at time 2 for factor 1; - 1t at time 1 and 2nd at time 2 for factor 2. there is dependance between time 2 and time 1 for each factor. there is dependance between factor 1 and factor 2 in each subject. dataset : case1 : subject factor time1 time2 1 factor1 12 50 1 factor2 10 20 2 factor1 12 15 2 factor2 16 70 3 factor1 9 90 3 factor2 1...

New to MATLAB. Need help with this problem.
I've just ignored this 3 problems (out of 9) in my final today and I wonder someone could help me to solve these problems so I can understand how to do it. 1/ Suppose we have a job that will take 20 hours to complete, and requires the use of a special (and expensive!) type of battery. It is known from exhaustive testing that the probability one of these batteries will wear out in (exactly) one hour is 0 .1, in two hours is 0.4, in three hours is 0.3 and in four hours is 0.2. For each 5 =< n =< 20 , let Pn denote the probability that exactly n batteries will be required to finish...

Hi, im trying to write a program that uses threads to search through an array of random numbers and then returns the total times that a specified target number occurs. The set up is that the user inputs the size of the array, the number of processors that they wish to simulate (number of threads created), and the target number that they want to search. The program then populates the array with random numbers, creates and runs the threads to search through array and increments the total each time that the target number is found. im having trouble writing the code to create the threads and run ...

Really need help in this MATLAB problem.
Going to go crazy. I noob in matlab. Please help me in those problem. Q : Write MatLab solution for the function DF that asks for a teamperature(in degree fahrenheit) and computes the equivalent temperature in degrees Celcius, and another function DC that asks for a temperature(in degrees Celcius) and computes the equivalent teamperature in degree Fahrenheit. Your functions should be able to accept both scalar and matrix input. The script should keep running until o number is provided to convert. [The function isempty will be useful here.] (Hint : Fahrenheit to Celsius : (F-32)...

Strange problem with my computer: need help !!
Hi ! I have a Athlon 1.2G, 256Mg Ram on Windows ME. I used a compressed gas duster to clean all internal parts of my computer (fans, motherboard, cd-rom, etc..). Since that event, I've got problem to boot on my computer. When the computer is cold, it boot and freeze 10 sec. after. The monitor's shut down, the disk drive light get always on but the drive don't work, everything on the keyboard or on the mouse is "close"... and I can't reset from the front switch (I must close the power supply). I must do that "game" up to 8 times before it runs correctl...

Urgent: Trigger problem... need help
Hi guys, Is there any limitation in Trigger function?? I keep getting this error message "[Pervasive][ODBC Client Interface][LNA][Pervasive][ODBC Engine Interface][Data Record Manager]The record has a key field containing a duplicate value(Btrieve Error 5)" What does this mean?? Can someone help me out this please? CREATE TRIGGER InsInvTrig AFTER INSERT ON Inventory REFERENCING NEW AS Indata FOR EACH ROW INSERT INTO tempInventory (I_FULL_KEY, I_WHSE, I_PART_NO, I_DESCRIPTION, I_PROD_CODE, I_LOCATION, I_BVRESERVED01, I_MEASURE, I_COST_CURRENT, I_COST_AVERAGE, ...

Urgent
Hi, I need help urgently......... My current os is WinXp Home (SP2). Everytime when during the windows start-up, it always appear the following message: Windows - No Disk X - There is no disk in the drive. Please insert a disk into drive A: Cancel Try Again Continue Under the Taskbar, is shown my firewall "No firewall is turned on" After I click on the continue box, the error message disappeared and firewall auto ON back again. Pls kind enoguh to email me your reply to skyvansg@yahoo.com.sg greatly appreciated your kind assistance. ...

Urgent problem, repeat, Urgent problem.
I have a form - when you click the submit button, it appends a variable to the URL (e.g. xyz.cgi?inputID=some_dynamic_variable) It also opens a new page. Now, that some_dynamic_variable is actually the name of a form element on the parent window. On the new page, I have this javascript: ---- var var2 = location.search.substring(9); document.write(var2) ---- This will print out some_dynamic_variable I then have the following code ---- function sendValue(var1, var2){ var selvalue = eval('selectform.' + var1 + '.value'); window.opener.document.taggingUI.var2.value += selvalue...

Web resources about - need to compute this problem having problems with how to start this problem help need urgently - comp.soft-sys.matlab

Is–ought problem - Wikipedia, the free encyclopedia
The is–ought problem in meta-ethics as articulated by Scottish philosopher and historian David Hume (1711–76) is that many writers make claims ...

Scientists say they can get spacecraft to Mars in 3 days using lasers but there's one big problem
VIDEO: Recently, a team of scientists led by Philip Lubin announced with NASA that they are working on developing technology that would enable ...

Warnings about problem-plagued digitisation of WA hospitals 'ignored', technology experts say
Technology experts say a plan to digitise hospitals was destined to fall short, and their warnings were ignored.

Biological supercomputer model could change how we solve complex problems
Researchers at McGill University have helped to develop a model of a biological supercomputer that can solve complex math problems using very ...

NP-complete problem solved with biological motors
... a collection of myosin. (credit: Nicolau lab, McGill University ) Quantum computers get a lot of people excited because they solve problems ...

The petty iPhone problem that’s driving me insane
Longtime readers of the site know at least two things about me: I've been an iPhone user since 2007 and a moderate germaphobe for much longer. ...

Kanye West summed up the retail industry's biggest problem in one tweet
... coats in the winter!!! — KANYE WEST (@kanyewest) February 24, 2016 This, while seemingly obvious, is actually very revealing of a major problem ...

February 2016: Unofficial Problem Bank list declines to 228 Institutions
This is an unofficial list of Problem Banks compiled only from public sources. Here is the unofficial problem bank list for February 2016. Changes ...

Successful Snake Hunt Shines Light On Florida’s Python Problem
After a monthlong snake hunt, the 106 Burmese pythons captured in Florida may not put a dent in the invasive species' growing numbers, but wildlife ...

Resources last updated: 2/28/2016 3:48:45 PM