RosettaCodeData/Task/Elementary-cellular-automaton/MATLAB/elementary-cellular-automaton-2.m

19 lines
455 B
Mathematica
Raw Permalink Normal View History

2023-07-01 11:58:00 -04:00
>> char(cellularAutomaton(90, ~(-15:15), 15) * 10 + 32)
ans =
*
* *
* *
* * * *
* *
* * * *
* * * *
* * * * * * * *
* *
* * * *
* * * *
* * * * * * * *
* * * *
* * * * * * * *
* * * * * * * *
* * * * * * * * * * * * * * * *