Add tests with 100,1000...
Solutions with ceil are wrong.
function out = HowManyDigits(in)
out = floor(log10(in))+1;
end
Find all elements less than 0 or greater than 10 and replace them with NaN
13151 Solvers
5871 Solvers
2261 Solvers
Remove the two elements next to NaN value
419 Solvers
392 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!