MATLAB Program that Determine Linear and Quadratic Best Fit Curves for the given Temperature Data
Question
Write a MATLAB program that will read in the data from the Microsoft Excel named tempData.xlsx
And determine the linear and quadratic best fit curves for the temperature data. The file format is shown in figure. Your program should also plot the original data and both fit curves on the same axes in a figure window. The original data should be marked on the plot with red O’s, the linear fit curve should be a black line and the quadratic fit curve a blue line. The program should appropriately annotate the plot. The program should work for any file of the format shown in figure not just the headings and data shown in figure.
|
Time (minutes) |
Temperature (Celsius) |
|
0.00 |
20.0 |
|
1.25 |
20.8 |
|
2.50 |
24.2 |
|
3.75 |
27.3 |
|
5.00 |
31.0 |
|
6.25 |
40.6 |
|
7.50 |
49.9 |
|
8.25 |
58.1 |
Figure shows - Temperature data
Summary
This question belongs to MATLAB software and discusses about a MATLAB program that determine the linear and quadratic best fit curves for the given temperature data.
