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!
405 Solvers
Back to basics 20 - singleton dimensions
254 Solvers
Sort numbers by outside digits
128 Solvers
Convert Two Character String into a Binary Vector
102 Solvers
Sum of diagonals elements of a matrix
166 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!