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
1168 Solvers
Solve the set of simultaneous linear equations
277 Solvers
Reverse the elements of an array
691 Solvers
525 Solvers
364 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!