Payam, this is a good puzzle, but the code in the template and the test suite gives away the answer. I suggest removing the code from the template and checking the validity of the answer by applying the rules to rows, columns, and 3x3 squares.
17209 Solvers
convert matrix to single column
306 Solvers
480 Solvers
07 - Common functions and indexing 4
319 Solvers
Sum of odd numbers in a matrix
311 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!