1:3 -> 0; 3:5 -> 6
Solution Stats
Problem Comments
1 Comment
Solution Comments
Show comments
Loading...
Problem Recent Solvers821
Suggested Problems
-
Swap the first and last columns
22945 Solvers
-
12477 Solvers
-
Find a subset that divides the vector into equal halves
402 Solvers
-
Add a row of zeros on top of a matrix
268 Solvers
-
567 Solvers
More from this Author99
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
The problem statement and test suite really need some improvement, here. It's a nice problem, though! I didn't assume that the three lengths given would form a triangle, and return a NaN if they don't.