知方号

知方号

pamdemod

pamdemod

Open Live Script

Demodulate a noisy pulse amplitude modulated signal of order 8.

M = 8;dataIn = randi([0 M-1],1000,1);

Apply pulse amplitude modulation (PAM) to the generated data. Employ a Gray-coded symbol mapping order for the modulation.

modData = pammod(dataIn,M,0,"gray");

Pass the modulated data through an additive white Gaussian noise channel. Set the signal-to-noise ratio to 8 dB.

noisyData = awgn(modData,M);

Display the noisy PAM constellation.

scatterplot(noisyData)

Apply pulse amplitude demodulation to the noisy modulated data.

demodData = pamdemod(noisyData,M,0,"gray");

Determine the number of symbol errors in the demodulated data.

symErrors = symerr(dataIn,demodData)symErrors = 1

版权声明:本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容, 请发送邮件至lizi9903@foxmail.com举报,一经查实,本站将立刻删除。