Please supply more than one test case and check each and every problem before posting. The current test suite has the wrong answer for the only case and can, therefore, not be properly solved.
awful task!
Test case 4 answer is wrong
Please modify the test case 4. It is wrong.
This problem has been fixed and is now solvable.
Applied a tolerance, which is crucial, since tiny variations in the least significant bits due to floating point arithmetic can cause a valid solution to fail.
Sum of diagonal of a square matrix
1333 Solvers
Set the array elements whose value is 13 to 0
958 Solvers
2227 Solvers
Find the area of the four walls
207 Solvers
135 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!