Curvefitting
Users are encouraged to read through the following primer: Curvefitting Primer
Examples | Tutorials | MATLAB programs |
---|---|---|
Given the data (t,y), use the polyfit and polyval functions to find the best-fit 1st and 2nd order polynomials. | curvefitting2.m | |
Given the data (t,y), use the polyfit and polyval functions to find and plot the best fit polynomials of orders 1, 2 and 3. | curvefitting1.m |
Files needed for the exercises: capVoltage.xlsx - Right-click and save-as if necessary