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.
2197 Solvers
How to find the position of an element in a vector without using the find function
2477 Solvers
Back to basics 21 - Matrix replicating
1052 Solvers
Remove the two elements next to NaN value
411 Solvers
367 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!