tags: Matlab complete code Matlab signal processing Code matters private letter blogger matlab Development language
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);
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
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.
First, introduction Second, source code Third, the result Fourth, note Version: 2014A...
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...
First, introduction MATLAB GUI Digital Signal Modulation System Second, source code Third, the result Fourth, note Version: 2014A...
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...
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...
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...
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...
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...
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 >&...
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...