Create a magic square.
numeric scalar specifying dimensions for the result
The value of the characteristic sum for a magic square of order
sum(1:n^2)/n. The order
n must be a scalar greater than or
equal to 3; otherwise, the result will be either a nonmagic square, or
else the degenerate magic squares 1 and .
n matrix constructed from
1 through N^2 with equal row and column sums.
A magic square, scaled by its magic sum, is doubly stochastic.
P. Roebuck [email protected]
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.