Not really my solution... just a slightly cheating version of @bmtran's.
522 Solvers
Back to basics 21 - Matrix replicating
1073 Solvers
334 Solvers
Is this triangle right-angled?
3111 Solvers
Check that number is whole number
1245 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!