********** USE MATLAB ********** 3. The following is a list of 20 exam scores: 6
ID: 2293786 • Letter: #
Question
********** USE MATLAB **********
3. The following is a list of 20 exam scores: 69, 81,47, 71, 54, 76, 60, 92, 85, 43, 88, 80, 79, 69, 26, 82, 89, 99, 71, 59. Calculate the average of the top 8 scores, and display this average in the command window to 1 decimal place. 4. The elements of the symmetric Pascal matrix are obtained from: Where iis the row number and j is the column number of the element. Use nested loops to create an 9x9 symmetric Pascal matrix. Display the completed matrix in the command window.Explanation / Answer
1.MATLAB CODE
x = [69 81 47 71 54 76 60 92 85 43 88 80 69 79 26 82 89 99 71 59];
b = sort(x,'descend');
c = b(1:8);
average8 = mean(c);
display(average8);
O/P:
average8 =
87
As per the Chegg guidelines, only 1 question at once is done, please post the other question separately, thank you, sir.
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.