Unless I'm screwing something up, I think there are three possible answers to this question, and you're looking for the integer one? Given the answers you are looking for, A and C are always the triangles that have one full side of your square, but that's not specified in the problem statement.
I took the scenic route.
17342 Solvers
Convert a numerical matrix into a cell array of strings
470 Solvers
Remove the two elements next to NaN value
418 Solvers
526 Solvers
68 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!