minor bug there. crashes for vectors and return incorrect answers for some input, for example a_in=[0 1 1 1; 0 0 0 0], a_out=[1 1 0 1; 0 0 0 0] instead of a_correct=[1 0 1 1; 0 0 0 0]. Ned, could you extend the test suite to 'kill' this answer?
Done. Thanks for the comment!
Back to basics 12 - Input Arguments
525 Solvers
Set some matrix elements to zero
290 Solvers
Create Volcano (or Atoll) martix. It is an extension of Bullseye matrix problem.
91 Solvers
58 Solvers
Check that number is whole number
1070 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!