you should probably add an assert statement that checks the size of the output matrices
I second @bmtran. lu wins!
thanks, I added the extra asserts as you suggest. the other solutions submitted so far look interesting, thanks for them!
it's lu, again...
very interesting observation that lu returns binary values factors for
these inputs. i must think about this further!
2267 Solvers
56 Solvers
Project Euler: Problem 6, Natural numbers, squares and sums.
1034 Solvers
Implement simple rotation cypher
955 Solvers
Calculate the area of a triangle between three points
922 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!