SCNet/preprocess/preprocess.m
2022-05-11 11:00:55 +08:00

9 lines
144 B
Matlab
Executable File

%% x preprocessing
x = x';
x = sgolayfilt(x,2,17);
x =diff(x);
max_x=max(max(x));
min_x=min(min(x));
x=(x-min_x)/(max_x-min_x);
x = x';