Problem 159. Figurate number triangle
Check whether the input matrix is a figurate number triangle: http://mathworld.wolfram.com/FigurateNumberTriangle.html
Solution Stats
Problem Comments
-
3 Comments
@bmtran (Bryant Tran)
on 29 Jan 2012
you should probably add a test case where the correct answer is false.
Franck Dernoncourt
on 29 Jan 2012
True!
Ned Gulley
on 22 Mar 2012
I added a few more tests as suggested.
Solution Comments
Show commentsProblem Recent Solvers95
Suggested Problems
-
284 Solvers
-
First non-zero element in each column
878 Solvers
-
middleAsColumn: Return all but first and last element as a column vector
613 Solvers
-
Flag largest magnitude swings as they occur
681 Solvers
-
Calculate the derivative of a polynomial
231 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!