Question: solve it as a matlab code pls The Drag ( FD ) and Lift ( FL ) forces of an aircraft can be estimated by

solve it as a matlab code pls
The Drag (FD) and Lift (FL) forces of an aircraft can be estimated by the following formulas: =122 ; =122 is the air speed (m/s), is the wing span (m2), is the air density (kg/ m3) and are the drag and lift coefficients. Both and depend on (angle of attack) and have the following correlations: =8.6510531.571032+9.21103+6.9103=1.2710439.291042+1.16101+3.38101 Where is in degrees For =1.225 kg/ m3, S =3.6 m2, V (100 values ranging from 20 to 120), (100 values ranging from 0 to 20); you are required to produce, exactly, the same following plot by completing the below MATLAB code. The main program contains all necessary input parameters then the above plot is created after calling two script sub-functions. The first function, called FDFL, has two inputs ( , V) and should returns the drag and lift forces (FD , FL). The second function, called CDCL, has one input ( ) and returns two outputs, the coefficients (CD , CL) Main program. (Hint : write all given commands excluding the commented lines (%) then complete missing!) clear; clc; format short g % Define the global variables ............................................................................% Define the constant parameters: density, wing span, and the attack angles. rho=.......;.......=.........;alpha1=.......;......=.......;......=.......; % Define the parameters with a range of values V and alpha ------=--------------; --------=-------------; % Call the function FDFL to calculate the drag and lift forces at different % attack angles [FD1,FL1]=FDFL(alpha1,V); % drag and lift for alpha1[-----,-----]=-------(-----,----); % drag and lift for alpha2[-----,-----]=-------(-----,----); % drag and lift for alpha3% Call the function CDCL to calculate the drag and lift coefficients [-----,-----]=-------(-----); % Start the sub-plotting---------------------------------------------------------% first subplot (Drag forces) subplot(2,2,1),-----------------------------------------------,---------% Define labels and legend of the first subplot ---------------------------------------------------------------------------------------------------% second subplot (Lift forces) subplot(-----),----------------------------------------------------------% Define labels and legend of the second subplot ---------------------------------------------------------------------------------------------------% Third subplot (Drag and Lift coefficients) subplot(--------),-------------------------------------------------------% Define labels and legend of the third subplot ------------------------------------------------------------------% add the second axis and plot for CL yyaxis ----------------------------------------------------------% define the label and legend ------------------------------------------------------------------ sub-functions % define the function FDFL function [...,...]=FDFL(...,...) global --------------------------------------% call the function CDCL to calculate the drag and lift coefficients [...,...]=------(-------); % Calculate the drag and lift forces -----=------------------------------; -----=------------------------------; End % define the function CDCL function [---,---]=CDCL(-----)% Calculate the drag and lift coefficient -----=-----------------------------------------------------------------------; -----=------------------------------------------------------

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!