It would be better to add more test cases to reinforce the test suite.
Thanks I just updated!
Using without the "round" fudge on the polyfit function should work, but gives errors on the order of 1e-14. Round only works because all the coefficients in your test suite are integers.
1277 Solvers
Set the array elements whose value is 13 to 0
978 Solvers
375 Solvers
Simple equation: Annual salary
3821 Solvers
Height of a right-angled triangle
514 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!