matlab里life生命游戏代码的详细注释,详细到每一行代码。 25
p=-1:1;forcount=1:50,kx=floor(rand*(m-4)+2);ky=floor(rand*(m-4)+2);X(kx+p,ky+p)=(rand...
p = -1 :1;
for count=1:50,
kx=floor(rand*(m-4)+2); ky=floor(rand*(m-4)+2);
X(kx+p,ky+p)=(rand(3)>0.5);
end; 展开
for count=1:50,
kx=floor(rand*(m-4)+2); ky=floor(rand*(m-4)+2);
X(kx+p,ky+p)=(rand(3)>0.5);
end; 展开
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询