Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
|
|
@ -0,0 +1,5 @@
|
|||
function init = cellularAutomaton(rule, init, n)
|
||||
init(n + 1, :) = 0;
|
||||
for k = 1 : n
|
||||
init(k + 1, :) = bitget(rule, 1 + filter2([4 2 1], init(k, :)));
|
||||
end
|
||||
|
|
@ -0,0 +1,18 @@
|
|||
>> char(cellularAutomaton(90, ~(-15:15), 15) * 10 + 32)
|
||||
ans =
|
||||
*
|
||||
* *
|
||||
* *
|
||||
* * * *
|
||||
* *
|
||||
* * * *
|
||||
* * * *
|
||||
* * * * * * * *
|
||||
* *
|
||||
* * * *
|
||||
* * * *
|
||||
* * * * * * * *
|
||||
* * * *
|
||||
* * * * * * * *
|
||||
* * * * * * * *
|
||||
* * * * * * * * * * * * * * * *
|
||||
Loading…
Add table
Add a link
Reference in a new issue