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.
All your base are belong to us
463 Solvers
Generate a string like abbcccddddeeeee
234 Solvers
2102 Solvers
206 Solvers
52 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!