Problem 1051. Exact binary matrix factorization
Solution Stats
Problem Comments
-
3 Comments
@bmtran (Bryant Tran)
on 24 Nov 2012
you should probably add an assert statement that checks the size of the output matrices
Khaled Hamed
on 24 Nov 2012
I second @bmtran. lu wins!
Paul Peeling
on 24 Nov 2012
thanks, I added the extra asserts as you suggest. the other solutions submitted so far look interesting, thanks for them!
Solution Comments
-
1 Comment
Khaled Hamed
on 25 Nov 2012
it's lu, again...
-
1 Comment
Paul Peeling
on 24 Nov 2012
very interesting observation that lu returns binary values factors for
these inputs. i must think about this further!
Problem Recent Solvers13
Suggested Problems
-
Swap the first and last columns
17180 Solvers
-
Extract leading non-zero digit
1755 Solvers
-
1593 Solvers
-
Split a string into chunks of specified length
1250 Solvers
-
Find out missing number from a vector of 9 elements
283 Solvers
More from this Author5
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!