y = fix(x);
The solution which I presented just now works perfectly fine on the live editor of Matlab, but don't know why math works still say it is incorrect?
use fix instead of floor or ceil command
Return the largest number that is adjacent to a zero
3770 Solvers
699 Solvers
388 Solvers
586 Solvers
Determine Whether an array is empty
649 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!