A robot Randomly searches a target. at each time step it makes the decision of going straight, left or right with a probability of 0.8,0.1,0.1 with a constant speed.
I have defined random variables(two dimensonal) to all of the 7 outcomes for 2 moves(left straight, left left, left right, straight right, straight straight, right right, right straight) according to their location and thus calculated the mean(4.27) and variance(1.8961). Can anyone help me how to carry out the monte carlo simulation for estimating the mean and the variance in matlab?
Thank you