Answer:
-%Define the function. 
function [avg, ele_left] = average_of_scores_with_drops(input_list, drop_element) 
 %Sort the list. 
input_list = sort(input_list); 
%Compute the length of the list. 
len_list = length(input_list); 
 
%Declare and initialize the variable. 
sum = 0; 
 
%Increase the element to be drop by 1. 
i = drop_element + 1; 
 
%begin the for loop. 
for k = i : length(input_list) 
 
%Add the elements. 
sum = sum + input_list(k); 
 
%End of the for loop. 
end 
 
%Compute the elements left after dropping the dropped element. 
ele_left = length(input_list) - drop_element; 
 
%Compute the average of the elements left. 
avg = sum/ele_left; 
 
%End of the function defined. 
end 
 
%Run the following code in the command prompt. 
 
%Call the function and return the average 
%score and the number of elements 
%whose average is computed. 
[average_score , number_of_items] = average_of_scores_with_drops([8 6 1 2 3 5 10], 2)
SAMPLE OF OUTPUT
average_score = 6.40000000000000
number_of_items = 5