Answer:
The value of y when t = 4.5 seconds is 130.31.
Explanation:
The data provided is:
S = {0, 8.8, 29.9, 62.0, 104.7, 159.1, 222.0, 294.5, 380.4, 471.1, 571.7, 686.8, and 809.2}
Use MATLAB to form the least squares cubic curve equation.
The codes are as follows:
t = [0:1:12]
y = [0,8.8,29.9,62.0,104.7,159.1,222.0,294.5,380.4,471.1,571.7,686.8,809.2];
txt =printf("The coeff of the curve in order of decreasing power are: ");
p = polyfit(t,y,3)
y1 = polyval(p,4.5)
The output is attached below.
The least squares cubic curve equation is:

The value of y when t = 4.5 is:


Thus, the value of y when t = 4.5 seconds is 130.31.