Nice problem! At least if you don't use MATLAB's existing function for this.
2013 Solvers
823 Solvers
Getting the indices from a vector
3464 Solvers
Side of an equilateral triangle
2761 Solvers
Replace Nonzero Numbers with 1
184 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!