Problem 139. Determine if a Given Number is a Triangle Number
Solution Stats
Problem Comments
Solution Comments
-
1 Comment
Watch out! Martix size!
-
2 Comments
This works in Matlab but not here? It fails on Test 3, but when I use the same value of x and the same function in Matlab it works...
Your output y is a row vector (or scalar), but in 3'rd test it should be a column vector. Predefine y first with the same size as x.
-
1 Comment
good solution
Problem Recent Solvers341
Suggested Problems
-
Remove any row in which a NaN appears
7579 Solvers
-
It dseon't mettar waht oedrr the lrettes in a wrod are.
1022 Solvers
-
Make a random, non-repeating vector.
5375 Solvers
-
Flip the vector from right to left
4886 Solvers
-
5164 Solvers
More from this Author56
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!