-
2 Comments
Lincoln Poon
on 18 Jan 2021
I keep failing the 'assert(isequal(x,xb))' part of the last test.
Can someone please give me some ideas on how to fix it?
Daigo
on 5 Jan 2022
Lincoln> I also had the same issue but figured out the cause. In my case, I was computing P by "P = uint8((-1+sqrt(8*M+1))/2);" but this causes a problem for a large M. After I modified it to "P = round((-1+sqrt(8*M+1))/2);", the error has been solved.
Suggested Problems
-
Extract leading non-zero digit
2175 Solvers
-
301 Solvers
-
Check to see if a Sudoku Puzzle is Solved
328 Solvers
-
641 Solvers
-
Given a matrix, swap the 2nd & 3rd columns
1140 Solvers
More from this Author44
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!