I need the commands in MATLAB to solve the problem.
Paragraph
Drawing
MATLAB Activity #6 2568913151 18. The following data is given:
5
6
8
11
13
15
14
15
8
10
12
a) Use linear least-squares regression to determine the coefficients m and b in the function y = mx + b that best fits the data.
b) Make a plot that shows the function and the data points.
19. The boiling temperature of water T at various altitudes h is given in the following table. Determine a linear equation in the form T = mb that best fits the data. Use the equation for calculating the boiling temperature at 5.000 m. Make a plot of the points and the equation.
h(m) 0 600 1500 2300 3000 6100 7900
T(C) 100 98.8 95.1 92.2 90 81.2 75.6
hs1-06001500230000061009001
Ts1-100988959229081.275.61
Notes