Unformatted text preview: function result=IsMagic(inputMatrix) . IsMagic inputs a square matrix inputMatrix and outputs result which is 1 if inputMatrix is magic and is 0 otherwise. You may NOT use a for or while loop for this exercise . Remark: Your solution should consist of the MATLAB code you wrote for the IsMagic function. 1 See Wikipedia for more on magic squares....
View
Full Document
 Spring '08
 Instuctor
 matlab, Integers, Prime number, magic squares, inputMatrix, square matrix inputMatrix

Click to edit the document details