From: Gema Olivarria on 7 May 2010 14:29 Hi this is my 3rd time using matlab i need help with something really simple. Here's my problem: Start with point #1(i=1) whose coordinates are X(i)=0 and Y(i)=0. Calculate the coordinates of the nxt point according to the following rule: Randomly choose one of the following four events: A,B,C or D. probability of A is 0.01; probability of B is 0.06; probability of C is 0.08; probability of D is 0.85. The coordinates of the nxt pt are: If A occurred, X(i+1)=0, Y(i+1)=0.16Y(i); If B occurred, X(i+1)=0.20X(i)-0.26Y(i), Y(i+1)=0.23X(i)+0.22Y(i)+1.6; etc., My question is, how do i assign the probabilities to each of these functions? what syntax do i use?
From: us on 7 May 2010 14:37 "Gema Olivarria" <gforgamgee(a)yahoo.com> wrote in message <hs1m5g$9js$1(a)fred.mathworks.com>... > Hi this is my 3rd time using matlab i need help with something really simple. Here's my problem: > > Start with point #1(i=1) whose coordinates are X(i)=0 and Y(i)=0. > > Calculate the coordinates of the nxt point according to the following rule: > > Randomly choose one of the following four events: A,B,C or D. > probability of A is 0.01; > probability of B is 0.06; > probability of C is 0.08; > probability of D is 0.85. > > The coordinates of the nxt pt are: > > If A occurred, X(i+1)=0, Y(i+1)=0.16Y(i); > If B occurred, X(i+1)=0.20X(i)-0.26Y(i), Y(i+1)=0.23X(i)+0.22Y(i)+1.6; > etc., > > My question is, how do i assign the probabilities to each of these functions? what syntax do i use? the same applies as for your last OP, which you launched a few tics ago: a this point in your ML life, you should dig into http://www.mathworks.com/access/helpdesk/help/techdoc/learn_matlab/bqr_2pl.html us
|
Pages: 1 Prev: help!!...One or more output arguments not assigned during call Next: help regression line |