a guest Feb 22nd, 2019 53 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
- function m = magicsquare(n)
- %MAGICSQUARE generates a magic square matrix of the size specified
- % by the input parameter n.
- % Copyright 2003-2006 The MathWorks, Inc.
- if ischar(n)
- m = magic(n);
RAW Paste Data