Solve by Matlab
2. The total drag force on a wing is dependent on the friction and lift forces as defined by Eq. (3).
$D = 0.01 \sigma V^2 + \frac{0.95}{\sigma} \left(\frac{W}{V}\right)^2$
(3)
Where D is drag force, $\sigma$ is the ratio of air density of flight level and air density of sea level, W is the weight of the wing
and V is the velocity. The friction component of the drag force increases with velocity whereas the lift component of the
drag decreases as defined in Eq. (3).
Assume W=15000 and $\sigma$=0.5.
a. Write a function that determines the total drag (D), Friction drag and lift drag dependent on velocity (V).
b. Draw the diagram of the variation of the total drag, friction and lift drag dependent on Velocity. Velocity changes
between [0 1200]. $\Delta V$=50
c. Write the formatted values of the velocity, friction, lift and total drags on a file called output.txt. Use a suitable format.
d. Find the velocity that corresponds the minimum total drag.