Question: USING MATLAB PLEASE ANSWER THE FOLLOWING QUESTIONS: 1) Write a function to calculate the aerodynamic drag on a body using the equation where C D
USING MATLAB PLEASE ANSWER THE FOLLOWING QUESTIONS:
1) Write a function to calculate the aerodynamic drag on a body using the equation

where
CD is the drag coefficient
A is the frontal area of the body
r is the density of air
V is the velocity
The function will have 4 inputs, CD, A, r, and V, and one output, D. In the function, print the resulting drag to the screen using fprintf. Include the units of the drag, lb.
Test the function using the values CD = 0.4, A = 2 ft2, r = 0.0024 slugs/ft3, V = 30 ft/s. The answer should be 0.864 lb. Now run the function again using a velocity of 60 ft/s, leaving the other inputs the same. The result should be 3.456 lb.
2) The equation for the motion of a pendulum with small angles is

Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
