Watch this Author's files
sorry I realized that it should be ordered by the sum. thank you
It works for small matrices, but it does not work for some larger matrices. Please run and check the following statement:
bsearchmatrows([5 6; 2 3 ; 1 2 ; 1 1; 0 0],[5 6])
ans = []
Obviously it should return '1', but it doesn't. Please help us fix this bug. Thank you,
Contact us at files@mathworks.com