magic4_matrix_test, a MATLAB code which calls magic4_matrix(), which computes an nxn magic matrix, for n a multiple of 4, such that all rows and columns have the same sum, as well as the diagonal and antidiagonal.
The information on this web page is distributed under the MIT license.
magic4_matrix, a MATLAB code which computes an nxn magic matrix, for n a multiple of 4, such that all rows and columns have the same sum, as well as the diagonal and antidiagonal.