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
4135 Solvers
10069 Solvers
Project Euler: Problem 6, Natural numbers, squares and sums.
1034 Solvers
Back to basics 12 - Input Arguments
527 Solvers
Return unique values without sorting
597 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!