How is it possible that the same matrix x in test 2 and test3 give different results? I guess you copy in the test 3 the wrong matrix?
Impossible to understand the tests
Too much variation on how many digits of precision you want
Now should be ok. Sorry but it is my first problem published.
For any question write me.
Add more tests to make this question's scores more relevant!
2261 Solvers
Sum the numbers on the main diagonal
453 Solvers
find the roots of a quadratic equation
170 Solvers
07 - Common functions and indexing 4
319 Solvers
327 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!