SHARE
TWEET

Untitled

a guest Feb 22nd, 2019 53 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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);
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top