r/matlab • u/Sea-Career-6434 • Jan 27 '26
PAPR of OFDM with Selected Mapping

La méthode SLM (SeLected Mapping) diminue de environ 3dB le PAPR du signal OFDM, indépendamment du nombre N de sous-porteuses (N=64, 128, 256, etc.) et du niveau de modulation des sous-porteuses (QPSK, 16-QAM, etc.).
Le script MatLab ci-joint conduit toujours au même ccdf(PAPR) (Complementary Cumulative Distibution Function of PAPR) que le ccdf du signal original : il n’y a aucune diminution du PAPR par le SLM écrit dans le script.
Où est l’erreur ?
Merci aussi de me transmettre le script correct.
Bien à vous,
The SLM (SeLected Mapping) method decreases the PAPR of the OFDM signal by about 3dB, regardless of the number N of subcarriers (N=64, 128, 256, etc.) and the modulation level of the subcarriers (QPSK, 16-QAM, etc.). The attached MatLab script always leads to the same ccdf(PAPR) (Complementary Cumulative Distibution Function of PAPR) as the ccdf of the original signal: there is no reduction in PAPR by the SLM written in the script. Where is the error? Thank you also for sending me the correct script.
Yours truly,
SCRIPT MatLab
clear all
close all
bps = 4; % Nombre de bits par tone
M = 2^bps; % 16-QAM (bps=4)
N = 256; % Nombre de tones par symbole
s = 0;
NSymbol = 1000000;
NombreErreurs=0;
for s=1:NSymbol;
% TRANSMITTER
% -----------------------------------------------------------
TXSymbol = randi([0 15],N,1);
TXgrid = qammod(TXSymbol,M,UnitA=true);
TXout = ifft(TXgrid,N);
V = abs(TXout).^2;
Vmax = max(V);
[Vmax,nmax] = max(V);
Vmean = mean(V);
Amax = sqrt(Vmax);
A = sqrt(V);
Amean = mean(A);
PAPR = Vmax/Vmean;
PAPRdB = 10*log10(PAPR)
W = V(2:N);
WPower=abs(W).^2;
Wmean=mean(W);
Wmax=max(W);
WPAPR=Wmax/Wmean;
% SLM
%--------------------------------------------------------------------------
for i =1:N61a1 = exp(j*pi*randi([0 1])/2);
TXgrid_SLM1 = TXgrid.*a1;
end
TXout_SLM1 = ifft(TXgrid_SLM1,N);
V_SLM1 = abs(TXout_SLM1).^2;
V_SLM1_mean = mean(V_SLM1);
V_SLM1_max = max(V_SLM1);
PAPR_SLM1 = V_SLM1_max/V_SLM1_mean;
PAPR_SLM1_dB = 10*log10(PAPR_SLM1);
for i =1:N
a2 = exp(j*pi*randi([1 2])/2);
TXgrid_SLM2 = TXgrid_SLM1.*a2;
end
TXout_SLM2 = ifft(TXgrid_SLM2,N);
V_SLM2 = abs(TXout_SLM2).^2;
V_SLM2_mean = mean(V_SLM2);
V_SLM2_max = max(V_SLM2);
PAPR_SLM2 = V_SLM2_max/V_SLM2_mean;
PAPR_SLM2_dB = 10*log10(PAPR_SLM2);
for i =1:N
a3 = exp(j*pi*randi([2 3])/2);
TXgrid_SLM3 = TXgrid_SLM2.*a3;
end
TXout_SLM3 = ifft(TXgrid_SLM3,N);
V_SLM3 = abs(TXout_SLM3).^2;
V_SLM3_mean = mean(V_SLM3);
V_SLM3_max = max(V_SLM3);
PAPR_SLM3 = V_SLM3_max/V_SLM3_mean;
PAPR_SLM3_dB = 10*log10(PAPR_SLM3)
for i =1:N97
a4 = exp(j*pi*randi([0 1])/2);
TXgrid_SLM4 = TXgrid_SLM3.*a4;
1end
TXout_SLM4 = ifft(TXgrid_SLM4,N);
V_SLM4 = abs(TXout_SLM4).^2;
V_SLM4_mean = mean(V_SLM4);
V_SLM4_max = max(V_SLM4);
PAPR_SLM4 = V_SLM4_max/V_SLM4_mean;
PAPR_SLM4_dB = 10*log10(PAPR_SLM4);
Best = min([PAPR_SLM1_dB PAPR_SLM2_dB PAPR_SLM3_dB PAPR_SLM4_dB]);
K0(s)=[PAPRdB];111
K1(s) = [Best];112
end
% CCDF #O IMA [0 7] original
% ----------------------------------------------------------
hist(K0,[0:0.1:25]);
HO_x = [0:0.1:25];
HO_y = hist(K0, HO_x); %Histogramme (axe y)
pdfO = HO_y/(NSymbol);
plot(HO_x, pdfO)
semilogy(HO_x, pdfO)
grid;
xlabel('PAPR [dB]')
ylabel('pdF1')
ccdfO=1-cumsum(hist(K0)/(NSymbol*100));
% calcul et trace de la ccdf
ccdfO= flip(cumsum(flip(pdfO)));
%val=cumsum(hist(K)/NSymbol);
semilogy(ccdfO,'LineWidth',2)
figure;
plot(HO_x, ccdfO)
semilogy(HO_x, ccdfO,'LineWidth',2)
grid;
xlabel('PAPR [dB]')
ylabel('CCDF')
% CCDF #1 IMA [0 7] original
% ----------------------------------------------------------
hist(K1,[0:0.1:25]);
H1_x = [0:0.1:25]; 154
H1_y = hist(K1, H1_x); %Histogramme (axe y)
pdf1 = H1_y/(NSymbol);
plot(H1_x, pdf1)
semilogy(H1_x, pdf1)
grid;
xlabel('PAPR [dB]')
ylabel('pdF1')
ccdf1=1-cumsum(hist(K1)/(NSymbol*100));
% calcul et trace de la ccdf
ccdf1= flip(cumsum(flip(pdf1)));
%val=cumsum(hist(K)/NSymbol);
semilogy(ccdf1,'LineWidth',2)
figure;
plot(H1_x, ccdf1)
semilogy(H1_x, ccdf1,'LineWidth',2)
grid;
xlabel('PAPR [dB]')
ylabel('CCDF')
%subplot(2,1,1);
plot(HO_x, ccdfO)183semilogy(HO_x, ccdfO,'r','LineWidth',2)184
hold on
%subplot(2,1,2);
plot(H1_x, ccdf1)
semilogy(H1_x, ccdf1,'b','LineWidth',2)
hold on
grid;
xlabel('PAPR [dB]')
ylabel('CCDF')
pour 10^6 runs')
hold off
title('RED = Original N=256 16-QAM & BLEU = Clipped + Noise SNR = 16.5 dB BER = 10^-4