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
3292 Solvers
Return the first and last characters of a character array
3991 Solvers
Flag largest magnitude swings as they occur
592 Solvers
Basics: 'Find the eigenvalues of given matrix
329 Solvers
644 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!