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

Q2. The standard air density, D (average of measurements made), at different hei

ID: 2249299 • Letter: Q

Question

Q2. The standard air density, D (average of measurements made), at different heights, h, from sea level up to a height of 33 km is given below h (km) 15 0 D (kgm1.2 18 0.91 0.66 0.47 0.31 0.19 h (km) 21 24 27 30 D (kg/m0.120.0750.046 0.029 0.0180.011 (a) Make the following four plots of the data points (density as a function of height): (1) both axes with linear scale; (2) h with log axis, D with linear axis; (3) h with linear axis, D with log axis; (4) both log axes. According to the plots choose a function (linear, power, exponential, or logarithmic) that best fits the data points and determine the coefficients of the function (b) Plot the function and the points using linear axes

Explanation / Answer

h=[0 3 6 9 12 15 18 21 24 27 30 33];
D=[1.2 0.91 0.66 0.47 0.31 0.19 0.12 0.075 0.046 0.029 0.018 0.011];
plot(h,D)
figure
semilogx(h,D)
figure
semilogy(h,D)
figure
loglog(h,D)

1. Fiirst input the data hieght and air density as two vectors.

2. plot(h,D) plots linearly data

3. semilogx plots data with x axis as logarthmic

4. semilogy plots with y axis as logarthmic

5. loglog plots both the axes as logarthmic