one dimensional random walk model MATLAB code??
显示 更早的评论
A drunk man's random walk in one dimension
3 个评论
Chris McComb
2015-4-16
Many people will be happy to help you with specific MATLAB related questions, but its unreasonable to ask for a full solution to what sounds like a homework question.
xosro
2015-4-18
hi i am not sure this code is what you want.|
if true
y=0;
i=1;
while 1>0
a=sign(randn);
y(i+1)=y(i)+a;
pause(.00005);
plot(y)
i=i+1;
end
end
James Tursa
2015-4-18
How often does he take a step? When does he go to sleep? What was he drinking?
采纳的回答
更多回答(0 个)
类别
在 帮助中心 和 File Exchange 中查找有关 Programming 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!