“…, 147]; = [0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20]; = zeros(5, 7); % Define the matrix size for = 2 : 6; % 3 to 7 times fitting [ , ] = polyfit( , , ); % Polynomial fitting ( − 1, 1 : + 1) = ; % Assign to matrix = polyval( , , ); % Calculate the fitting values of ( −1) = std( − ); % Calculate the standard deviation between the fitting value and original data end Results are as follows:…”