It would be better to check the answers by taking the difference of the results and compare with some tolerance. Thank you very much.
I agree with George. One should not use isequal with floating-point numbers.
Tolerance has been added to the test suite.
Compute a dot product of two vectors x and y
750 Solvers
Generate a vector like 1,2,2,3,3,3,4,4,4,4
3610 Solvers
Find 100 from a Matrix and Replace With 0 with less computation time
82 Solvers
292 Solvers
58 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!