magic

magic(n) returns the n x n magic square matrix.

Examples

> magic(3)#

	8            1            6
	3            5            7
	4            9            2

Resources

See also

ones | rand