这是灰色模型的代码clear all;clc;a = [245.1 242.7 253.4 258.8 258.7 270.7 281.4 288.0];n = length(a);lamda = a(1:n-1)./a(2:n); %级比c = 0;range = minmax(lamda) %级比范围ran1 = [exp(-2/(n+1)),exp(2/(n+2))] %级比可容范围if and(ran1(1)<range(1),range(2)<ran...