determine the sum of fraction part for the given matrix
Solution Stats
Problem Comments
4 Comments
Solution Comments
Show comments
Loading...
Problem Recent Solvers42
Suggested Problems
-
1360 Solvers
-
Solve the set of simultaneous linear equations
504 Solvers
-
Number of 1s in a binary string
11316 Solvers
-
Duplicate each element of a vector.
636 Solvers
-
Replace every 3rd element in a vector with 4
267 Solvers
More from this Author2
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
Unfortunately, your checker does only include 4 digits of accuracy, and therefore the 'correct' solution is not accepted, only a hard-coded variant.
It is always better to have multiple tests, to avoid non-generic solutions to problems.
Hello, jamal hasoon. I completely agree with the preceding comment. Furthermore, it is very strongly recommended to write your own general solution code, to ensure compatibility of the inputs and the target solution in the Test Suite. —DIV
Alternatively, if you intend that users should round their results, then please include that instruction explicitly in the Problem Statement.
Another point: please do not include so much sample code in the Solution Template that is seen by everybody.
Lastly, it would be clearer to refer to the "decimal part" (or "fractional part"), rather than "fraction part".
See Problem 44521 for more ideas. —DIV
Problem statement and test cases have been modified.