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
Find the two most distant points
1644 Solvers
All your base are belong to us
464 Solvers
318 Solvers
378 Solvers
1196 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!