smoothing filter matlab code
Abel Kemmer
—
x.^2)/(2sigma^2)); gaussianKernel = gaussianKernel / sum(gaussianKernel); % Normalize % Apply convolution y_smooth_gaussian = conv(y, gaussianKernel, 'same'); % Plot results figure; plot(x, y, 'b.', 'DisplayName'