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
Determine whether a vector is monotonically increasing
12199 Solvers
1182 Solvers
Create a vector whose elements depend on the previous element
397 Solvers
324 Solvers
Convert a Cell Array into an Array
445 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!