UOMOP
PSNR (slow fading) 본문
% 기존 데이터 입력 (SNR 순서 변경 필요 없음)
snr = [0, 5, 10, 15, 20, 25, 30];
psnr_DeepJSCC_512 = [24.781, 27.6, 29.801, 31.5, 32.817, 34, 35.227];
psnr_proposed_512 = [23.55, 27, 29.08, 31, 32.48, 33.4, 34.19];
psnr_TopK_512 = [23.71, 25.8, 27.99, 29.5, 30.83, 32, 33.09];
psnr_Random_512 = [21.72, 24.9, 27.24, 28.8, 30.18, 31.2, 32.2];
% 기존 데이터 (SNR 256) + 4
psnr_DeepJSCC_256 = [23.638, 25.578, 27.518, 29.2115, 30.505, 31.251, 31.697];
psnr_proposed_256 = [24.20, 25.82, 27.43, 28.90, 29.98, 30.66, 31.05];
psnr_TopK_256 = [23.32, 25.06, 26.81, 28.28, 29.34, 30.07, 30.50];
psnr_Random_256 = [21.96, 23.92, 25.89, 27.76, 29.24, 30.08, 30.62];
% DeepJSCC 데이터 범위 설정
snr_DeepJSCC = [0, 5, 10, 15, 20, 25, 30];
% dim을 기반으로 선택
dim = 512; % 원하는 dim 입력 (512 또는 256)
if dim == 256
psnr_proposed = psnr_proposed_512;
psnr_TopK = psnr_TopK_512;
psnr_Random = psnr_Random_512;
psnr_DeepJSCC = psnr_DeepJSCC_512;
else
psnr_proposed = psnr_proposed_256;
psnr_TopK = psnr_TopK_256;
psnr_Random = psnr_Random_256;
psnr_DeepJSCC = psnr_DeepJSCC_256;
end
% 그래프 그리기
figure;
plot(snr, psnr_DeepJSCC, '-k', 'LineWidth', 2, 'Marker', 'o', 'MarkerSize', 8, 'DisplayName', 'DeepJSCC'); hold on;
plot(snr, psnr_proposed, '-r', 'LineWidth', 2, 'Marker', 's', 'MarkerSize', 8, 'DisplayName', 'DA-JSCC (Proposed)');
plot(snr, psnr_TopK, '--b', 'LineWidth', 2, 'Marker', 'd', 'MarkerSize', 8, 'DisplayName', 'DA-JSCC (Top-K)');
plot(snr, psnr_Random, '-.','Color', [0, 0.5, 0], 'LineWidth', 2, 'Marker', '^', 'MarkerSize', 8, 'DisplayName', 'DA-JSCC (Random)');
% 그래프 옵션 설정
xlabel('SNR (dB)', 'FontSize', 12);
ylabel('PSNR (dB)', 'FontSize', 12);
ylim([0 40]);
legend('Location', 'southeast', 'FontSize', 10);
grid on;
hold off;
Comments