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
54361 Solvers
2261 Solvers
What is the distance from point P(x,y) to the line Ax + By + C = 0?
278 Solvers
498 Solvers
1174 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!