test suite is poor
function y = your_fcn_name(x)
if (~isinf(x) && fix(x)==x)
y=1
else
y=0
end
end
function y = your_fcn_name(x)
if abs(round(x)-x)==0
y=1;
else
y=0;
end
"Low : High - Low : High - Turn around " -- Create a subindices vector
320 Solvers
466 Solvers
Are all the three given point in the same line?
270 Solvers
187 Solvers
443 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!