Problem 139. Determine if a Given Number is a Triangle Number
36.26% Correct | 63.74% Incorrect
Last Solution submitted on Mar 29, 2023
Lucinda King on 11 Jan 2017
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...
Jan Orwat on 13 Jan 2017
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.
Problem Recent Solvers356
Read a column of numbers and interpolate missing data
Back to basics 8 - Matrix Diagonals
More from this Author56
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!