?? program_13_04.m
字號:
% 產生信號,設置閾值
t = linspace(0,1,100);
y = 0.8*sin(2*pi*t);
subplot(1,3,1),plot(y);
title('原始信號'),grid on;
thr = 0.4;
% 進行硬閾值處理
ythard = wthresh(y,'h',thr);
subplot(1,3,2),plot(ythard );
title('硬閾值處理信號'),grid on;
% 進行軟閾值處理
ytsoft = wthresh(y,'s',thr);
subplot(1,3,3),plot(ytsoft);
title('軟閾值處理信號'),grid on;
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -