Copy/paste rank.m (with a slight tweak since nargin=1) works just fine. :-)
Is it so? Thanks for your input. I will take care next time.
I think the test suite needs to be expanded to include a matrix whose rank does not equal the number of rows. The solution here passes the test suite, but would not actually find the rank.
5742 Solvers
437 Solvers
Find out total non zero element of matrix
196 Solvers
Matlab Basics - Create a row vector
280 Solvers
Matlab Basics - Absolute Value
364 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!