RosettaCodeData/Task/Spiral-matrix/MATLAB/spiral-matrix-2.m
Ingy döt Net 68f8f3e56b all tasks
2013-04-11 01:07:29 -07:00

9 lines
183 B
Mathematica

>> reverseSpiral(5)
ans =
0 1 2 3 4
15 16 17 18 5
14 23 24 19 6
13 22 21 20 7
12 11 10 9 8