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
Which values occur exactly three times?
3885 Solvers
Find state names that end with the letter A
724 Solvers
Project Euler: Problem 2, Sum of even Fibonacci
901 Solvers
335 Solvers
199 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!