Read the problem statement on Blackboard. Follow the template below to find the coefficients for the vortex sheet strength. You are writing functions that will be used later in other sections of this activity. Do not change the primary functions’ names, or the number of input and output variables. You can change the secondary functions. Function Reset MATLAB Documentation w NP function A = coef(alpha) % Do not change the function name, number of input and output variables. % In this function you have to calculate the coef. All to A20 using integrations. The input is only the angle of attack in radian, and the output is a vector array % with 21 elements. The first element is AD, and the last element is A20. % Note that this function and dcamber do not need the chord length. A = zeros (21,1); % Write a loop that goes over the calculation of each element of A using the dz/dx defined in dcamber function. Remember that some functions are defined using the auxiliary variable theta, and some are based on x/c and z/c. % Use any integration method you like. But, you may need to increase the accuracy % to be able to generate the same coef. as the reference code. end function dzdx = dcamber(theta) write a function that calculates dz/dx for each value of theta. You may want to create a function that works with a vector array as theta and generates a vector % array dzdx corresponding to each element of input. end Show transcribed image text Read the problem statement on Blackboard. Follow the template below to find the coefficients for the vortex sheet strength. You are writing functions that will be used later in other sections of this activity. Do not change the primary functions’ names, or the number of input and output variables. You can change the secondary functions. Function Reset MATLAB Documentation w NP function A = coef(alpha) % Do not change the function name, number of input and output variables. % In this function you have to calculate the coef. All to A20 using integrations. The input is only the angle of attack in radian, and the output is a vector array % with 21 elements. The first element is AD, and the last element is A20. % Note that this function and dcamber do not need the chord length. A = zeros (21,1); % Write a loop that goes over the calculation of each element of A using the dz/dx defined in dcamber function. Remember that some functions are defined using the auxiliary variable theta, and some are based on x/c and z/c. % Use any integration method you like. But, you may need to increase the accuracy % to be able to generate the same coef. as the reference code. end function dzdx = dcamber(theta) write a function that calculates dz/dx for each value of theta. You may want to create a function that works with a vector array as theta and generates a vector % array dzdx corresponding to each element of input. end
Expert Answer
Answer to Read the problem statement on Blackboard. Follow the template below to find the coefficients for the vortex sheet streng…