Technical Articles

Conference Paper

MATLAB Mystery Tour


Author:

  • Cleve Moler, MathWorks

An n-by-n magic square is an array containing the integers from 1 to n2, arranged so that all the rows and columns have the same sum.

The origins of the magic square lie in centuries-old recreational mathematics. In this article from 1993, Cleve Moler explains their relevance in modern mathematics. He uses magic squares and the MATLAB® magic function to explain features of MATLAB and illustrate concepts from linear algebra.

Published 1993 - 92031v00


Products used: MATLAB

Keep Exploring