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
767 Solvers
Back to basics 12 - Input Arguments
527 Solvers
Convert a vector into a number
506 Solvers
Flag largest magnitude swings as they occur
588 Solvers
421 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!