mathlayer
®
About
·
Downloads
·
Functions
·
Support
·
Community
magic
>
Functions
>
Constants
magic(n) returns the n x n magic square matrix.
Examples
> magic(3)# 8 1 6 3 5 7 4 9 2
References
https://en.wikipedia.org/wiki/Magic_square
Resources
See also
ones
|
rand