# 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.

• Rasha

this is a very good website

• maani

I have 50 questions for the same test your page is showing only 28

• joeanne

• joeanne

hi can anyone help or guide me to my assignments. thanks

• Monik

• Cristina

This solution is perfect ...thanks

• Janete

Hello Allison,I love the 2nd image that you did! I also, had never heard of SumoPaint, is something that I will have to exolpre a bit! I understand completely the 52 (or so) youtube videos that you probably watched. Sometimes they have what you want, sometimes they don't! However, it is always satisfying when you are able to produce something that you have taught yourself. Great job!Debra 0 likes

• Sandeep

Perfect bank of solution.

• Oxana

great !

• Paul Brandon-Fritzius

thanks for the quick response. the solution looks good. :)

• tina Johnson

thnx for the answer. it was perfect. just the way i wanted it.

• Giuseppe

works fine.