Hi
I am reading Mr Cleve Moler's book about Matrix Experiments,
in chapter 18 there is sudoku.m
that automates 9×9 sudokus. Just starting the exercises, one of the questions is to count how long does it take to solve different sudokus.
I would like to count the amount of times that sudoku.m calls itself, I have tried to modify
X=sudoku(X,..) to [X,counter2]=sudoku(X,..,counter1)
but all my attempts return errors like counter2 not updated or too many inputs.
The attached function completes solving the sudoku but I don't know how to implement a counter of the times sudoku.m recurs.
Thanks for time and attention
John
Best Answer