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
2275 Solvers
Flip the main diagonal of a matrix
517 Solvers
Determine Whether an array is empty
653 Solvers
Sum the numbers on the main diagonal
463 Solvers
2180 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!