Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Must Use MATLAB! Below is the problem statement as well as the solution. All I n

ID: 1862651 • Letter: M

Question

Must Use MATLAB! Below is the problem statement as well as the solution. All I need is a Matlab code to prodoce the solution.




The following data shows the relationship between the viscosity of SAE 70 oil and temperature. After taking the log of the data, use linear regression to find the equation of the line that best fits the data and the r2 value. Temperature, degree C 26.67 93.33 148.89 315.56 Viscosity, mu, N.s/m21.35 0.085 0.012 0.00075 A log-log plot of mu versus T suggests a linear relationship. Regressing log10 mu versus log10 T gives log10 mu = 4.581471 - 3.01338 log10T (r2=0.975703). Therefore, alpha2 =104.581471 = 38147.94 and =-3.01338, and the power model is mu = 38147.94 T-3.01338. Now this model and the data can be also plotted on untransformed scales.

Explanation / Answer

T=[26.67, 93.33, 148.89,315.56];

V=[1.35, .085, .012, .00075];

a=logm(T);

b=logm(V)

[r,m,b] = regression(a,b);

alpha= 10^b;

beta=m