窗口移动多项式平滑演示程序.txt

来自「窗口移动多项式平滑演示程序。。。二维数据模拟程序」· 文本 代码 · 共 23 行

TXT
23
字号
%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 + =
减小字号Ctrl + -
显示快捷键?