sh.m

来自「该程序基于小波变换」· M 代码 · 共 11 行

M
11
字号
t=linspace(0,1,100);
y=sin(2*pi*t);
subplot(1,3,1),plot(y);
title('原始信号');
thr=0.5;
ythard=wthresh(y,'h',thr);
subplot(1,3,2),plot(ythard);
title('硬阈值处理信号');
ytsoft=wthresh(y,'s',thr);
subplot(1,3,3),plot(ytsoft);
title('软阈值处理信号');

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?