I think you try to get the "i" and "j" that the function nonzeros does not give:
http://www.mathworks.de/de/help/matlab/ref/nonzeros.html
Thanks José, I've fixed bugs.
"0" and not "false"... nice shot!
886 Solvers
Implement simple rotation cypher
969 Solvers
Convert Two Character String into a Binary Vector
104 Solvers
5749 Solvers
Let's get back to school, and create multiplication tables
155 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!