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!
Back to basics 2 - Function Path
164 Solvers
Return elements unique to either input
556 Solvers
Determine Whether an array is empty
650 Solvers
We love vectorized solutions. Problem 1 : remove the row average.
555 Solvers
Find offset of an element of a multi dimensional matrix
29 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!