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
4628 Solvers
Project Euler: Problem 9, Pythagorean numbers
295 Solvers
Return the first and last characters of a character array
3685 Solvers
There are 10 types of people in the world
327 Solvers
245 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!