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
Program an exclusive OR operation with logical operators
643 Solvers
Project Euler: Problem 10, Sum of Primes
735 Solvers
Back to basics 23 - Triangular matrix
647 Solvers
Determine Whether an array is empty
652 Solvers
Given a window, how many subsets of a vector sum positive
757 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!