что делает функция smooth?
усредняет по нескольким точкам.
Как именно усредняет, зависит от алгоритма усреднения, который будет выбран:
Цитата:
Z = SMOOTH(Y) uses the moving average method with span 5 and X=1:length(Y).
Z = SMOOTH(Y,7) uses the moving average method with span 7 and X=1:length(Y).
Z = SMOOTH(Y,'sgolay') uses the Savitzky-Golay method with DEGREE=2, SPAN = 5, X = 1:length(Y).
Z = SMOOTH(X,Y,'lowess') uses the lowess method with SPAN=5.
Z = SMOOTH(X,Y,SPAN,'rloess') uses the robust loess method.
Z = SMOOTH(X,Y) where X is unevenly distributed uses the 'lowess' method with span 5.
Z = SMOOTH(X,Y,8,'sgolay') uses the Savitzky-Golay method with span 7 (8 is reduced by 1 to make it odd).
Z = SMOOTH(X,Y,0.3,'loess') uses the loess method where span is 30% of the data, i.e. span = ceil(0.3*length(Y)).