This problem is hard due the precision error that floating-point numbers have. The number 0.1 may not be equal to 0.1, be careful.
i am surprised to see why the same thing doesn't work when kept in decimal
1050 Solvers
Flip the main diagonal of a matrix
506 Solvers
380 Solvers
Side of an equilateral triangle
2595 Solvers
Determine the length of a string of characters
171 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!