要淘汰多少?
信息处理
抽取
2022-02-03 05:39:01
1个回答
这是一个关于如何对 ASK 信号执行卷积 + 抽取的一般示例。
amplitudes = [1, 0 0 1 0 1 1 0 1 0];
N = 100; % the symbol length.
pulse = 1.2*ones(N, 1); % the Rx pulse (used for correlation)
% the tx pulse (used to recreate your RX signal);
tx_pulse = pulse + 0.2*sin(2*pi*10/N*(1:N)');
% artificially create a signal
signal = zeros(N*length(amplitudes),1);
for i=1:length(amplitudes)
signal((i-1)*N+(1:N)) = amplitudes(i) * tx_pulse;
end
signal = signal + 0.01*randn(size(signal));
subplot(3,1,1);
plot(signal);
title('RX signal');
subplot(3,1,2);
after_conv = conv(signal, pulse);
plot(after_conv);
title('After convolution');
subplot(3,1,3);
stem(after_conv(1:N:end));
title('After decimation');
其它你可能感兴趣的问题