Determine if the elements of an input array are triangle numbers and return the result as an array with the same dimensions as the input.
Input = [ 1 2 3 ]; Output = [ 1 0 1 ];
MATLAB and Simulink resources for Arduino, LEGO, and Raspberry PiLearn more
Opportunities for recent engineering grads.Apply Today
New to MATLAB?Learn MATLAB today!
Play games and win prizes!Learn more