Do a simple cellular with MATLAB


q=zeros(50,100);
for i=(1:50)
for j=(50-i:50+i)
q(i,j)=1;
h=imagesc(q);
pause(0.00001)
end
end
A first spatial distribution matrix row
The cycle of violence for violence shows that violence is stopped;
 

Guess you like

Origin www.cnblogs.com/a1113775906/p/11332424.html