@@bmtran :D .....
this solution kinda fails on this test case ... %%
hm = [0 1 0 0 0 0 0 0 0 0 0 0 1
0 1 0 0 0 0 0 0 0 0 0 0 0
0 0 0 1 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0];
Found out when I used your code for the best poker hand problem ... Cheers.
1804 Solvers
213 Solvers
Find the sum of the elements in the "second" diagonal
995 Solvers
Find the largest value in the 3D matrix
1057 Solvers
170 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!