Matlab-magic

magic
Magic square
Syntax
M = magic(n)
Description
M = magic(n)
returns an n-by-n matrix constructed from the integers 1 through n^2 with equal row and column sums. The order n must be a scalar greater than or equal to 3.
Remarks
A magic square, scaled by its magic sum, is doubly stochastic.

    原文作者:六便士少年
    原文地址: https://www.jianshu.com/p/3701268f90c1
    本文转自网络文章,转载此文章仅为分享知识,如有侵权,请联系博主进行删除。
点赞