Check whether the input matrix is a figurate number triangle: http://mathworld.wolfram.com/FigurateNumberTriangle.html
Solution Stats
Problem Comments
3 Comments
Solution Comments
Show comments
Loading...
Problem Recent Solvers98
Suggested Problems
-
Detect a number and replace with two NaN's
199 Solvers
-
Magic is simple (for beginners)
11152 Solvers
-
Find the index of the largest value in any vector X=[4,3,4,5,9,12,0,4.....5]
399 Solvers
-
777 Solvers
-
Is this triangle right-angled?
6392 Solvers
More from this Author23
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
you should probably add a test case where the correct answer is false.
True!
I added a few more tests as suggested.