Problem 1972. Convert matrix to 3D array of triangular matrices
Solution Stats
Problem Comments
Solution Comments
-
2 Comments
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?
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.
Problem Recent Solvers81
Suggested Problems
-
Find the two most distant points
2081 Solvers
-
Remove the polynomials that have positive real elements of their roots.
1030 Solvers
-
Find a subset that divides the vector into equal halves
360 Solvers
-
248 Solvers
-
Find last zero for each column
331 Solvers
More from this Author43
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!