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
879 Solvers
Back to basics 22 - Rotate a matrix
768 Solvers
What is the distance from point P(x,y) to the line Ax + By + C = 0?
281 Solvers
370 Solvers
242 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!