Advertisement
Guest User

Untitled

a guest
Feb 22nd, 2019
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.21 KB | None | 0 0
  1. function m = magicsquare(n)
  2. %MAGICSQUARE generates a magic square matrix of the size specified
  3. % by the input parameter n.
  4.  
  5. % Copyright 2003-2006 The MathWorks, Inc.
  6.  
  7. if ischar(n)
  8. n=str2num(n);
  9. end
  10. m = magic(n);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement