[Digital signal modulation] Based on the Matlab QAM signal generation and demodulation [Matlab source code 1684]

tags: Matlab complete code  Matlab signal processing  Code matters private letter blogger  matlab  Development language

1. Get the code method (with the instructions of the experimental topic)

Obtain code method 1:
The full code has uploaded my resources:[Digital signal modulation] Based on the Matlab QAM signal generation and demodulation [Matlab source code 1684]

Obtain code method 2:
By subscribe to Ziji Shenguang BlogPaid column, Pay payment vouchers,Private letter blogger, Get this code.

Remark:
Subscribe to Ziji Shenguang BlogPaid column, You can get it for free1Code (Validity periodIt is valid within three days for the subscription date);

2. Partial source code

clc;close all
nsymbol= 100000;                                              %Random signal length
M=16;
SNR=1:15;                                                     %Signal to noise ratio, unit DB
snr1=10.^(SNR/10);                                            %Turn DB to a non -linear way
graycode=[0 1 3 2 4 5 7 6 12 13 15 14 8 9 11 10];             %Gray mapping
data=randi([0,15],1,nsymbol);                                 %Generate random signals
data1=graycode(data+1);                                       %Gray mapping
tx=qammod(data1,M);                                           %16QAM modulation
spow=norm(tx).^2/nsymbol;                                     %a+The square of BJ's mold, that is, power; the average power except the entire symbol is except the entire symbol
for i= 1:length(SNR) 
    rx=awgn(tx,SNR(i),spow);                                  %Kagosa white noise
    yout=qamdemod(rx,M);                                      %16QAM demodulation
    data_out=graycode(yout+1);                                %Gray
    [err1,errb(i)]=biterr(data,data_out,log2(M));             %Experimental error bid rate
    [err2,errs(i)]=symerr(data,data_out);                     %Experimental error rate
end
%%  Calculate theoretical value and compare the experimental value
p4=2*(1-1/sqrt(M))*qfunc(sqrt(3*snr1/(M-1)));                 %Theoretical error rate
terrs=1-(1-p4).^2;
terrb=1/log2(M)*terrs;                                        %Theoretical error bitting rate


Third, run results

Fourth, Matlab version and reference literature

1 Matlab version
2014a

2 References
[1] Shen Ziyang. Professional Matlab signal processing [M]. Tsinghua University Press, 2015.
[2] Gao Baojian, Peng Jinye, Wang Lin, Pan Jianshou. Signal and system -use matlab analysis and implementation [m]. Tsinghua University Press, 2020.
[3] MATLAB implementation [m]. Electronic Industry Press, 2018. Electronic Industry Press, 2018.

Intelligent Recommendation

[Digital Signal Modulation] Based on MATLAB orthogonal amplitude modulation simulation [including MATLAB source code 1002]

First, introduction Second, source code Third, the result Fourth, note Version: 2014A...

[Analog signal] Suppression of carrier double sideband amplitude modulation signal generation + demodulation based on matlab

1. Introduction 1 Modulation principle\Conventional double-sideband amplitude modulation is also called standard amplitude modulation, referred to as amplitude modulation (AM). Assuming that the avera...

[Digital Signal Modulation] Based on MATLAB GUI Digital Signal Modulation System [including Matlab Source 1030]

First, introduction MATLAB GUI Digital Signal Modulation System Second, source code Third, the result Fourth, note Version: 2014A...

[Digital Signal Modulation] Based on MATLAB GUI Digital Signal Modulation System [including Matlab Source 052]

First, get the code method Get a code method 1: The full code has uploaded my resources:[Digital Signal Modulation] Based on MATLAB GUI Digital Signal Modulation System [including Matlab Source 052] G...

[Analog signal] Based on MATLAB suppression carrier bilateral band adjustment signal generation + demodulation [including MATLAB source code 985]

First, introduction 1 Modulation principle The routine bilateral band is called the standard amplitude, referred to as a spread (AM). It is assumed that the average value of the modulation signal M (t...

More Recommendation

[Modulation Signal] Based on MATLAB GUI Digital Modulation Signal Simulation [including MATLAB Source 336]

First, introduction The platform is used to simulate the modulated signal in the communication system and simulate the spectral map, mainly amplitude modulation, angular modulation, digital modulation...

[Analog signal] Based on MATLAB phase-phase signal generation + demodulation [including MATLAB source 987]

First, introduction Phase modulation, or claimed: The phase of the carrier is proportional to the modulation method of the deviation value of the reference phase as the transient value of the modulati...

[Analog Signal] Based on MATLAB FM signal generation + demodulation [including MATLAB source 986]

First, introduction 1 generation of the frequency modulation signal The method of the FM is: direct FM and indirect FM. Direct FM: The frequency of the sine wave oscillator is directly controlled by t...

[Communication] Based on MATLAB GUI Digital Band (ASK, PSK, QAM) Modulation Simulation [including MATLAB Source Code 483]

First, introduction MATLAB GUI Digital Band (ASK, PSK, QAM) modulation simulation Second, source code Third, the result Fourth, note Complete code or writing to add QQ 1564658423 Previous review >&...

[Communication Principles] Experiment 1 The modulation and demodulation of an analog signal based on MATLAB

Matlab -based simulation system simulation Table of contents Matlab -based simulation system simulation 1. Experimental type 2. Experimental purpose 3. Experimental principle Fourth, experiment conten...

Copyright  DMCA © 2018-2026 - All Rights Reserved - www.programmersought.com  User Notice

Top