在拟合前可以先对x数据进行标准化:
%% x,y是题目中的数据plot(x, y, 'or')hold on[t, mu, sigma] = zscore(x);cfun = fit(t(:), y(:), fittype('a * exp(-((x - b)/c)^2)'));xx = 1:0.1:60;t = (xx-mu)/sigma;yy = cfun.a * exp(-((t - cfun.b)/cfun.c).^2);plot(xx, yy);