📄 窗口移动多项式平滑演示程序.txt
字号:
%singnal simulation
: x=-3:0.1:2;
: y=x.^2+x-1+1.5*rand(1,length(x));
: width=7;degree=2;
: %smooth with SG method
: ynew=smooth(y,width,'sgolay',degree);
: ...................
%singnal simulation
x=-3:0.1:2;
y=x.^2+x-1+1.5*rand(1,length(x));
width=7;degree=2;
%smooth with SG method
ynew=smooth(y,width,'sgolay',degree);
% plot
figure;plot(x,y,'b+');hold on;plot(x,ynew,'r');
%%% 拷贝以上内容,在matlab下运行即可%%%
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -