Add Example
This commit is contained in:
@@ -0,0 +1,42 @@
|
||||
clear;
|
||||
close all;
|
||||
clc;
|
||||
|
||||
load node_detect.mat;
|
||||
|
||||
Fontsize = 18;
|
||||
plot_width = 850;
|
||||
plot_height = 600;
|
||||
Linewidth = 2;
|
||||
Markersize = 8;
|
||||
|
||||
|
||||
|
||||
%% plot
|
||||
figure(1);
|
||||
loglog(P_fa, P_fa_node, '-o', ...
|
||||
'Linewidth', Linewidth, ...
|
||||
'MarkerSize', Markersize);
|
||||
grid on;
|
||||
legend('SNR = 10dB');
|
||||
xlabel('P_{fa} Set');
|
||||
ylabel('Actual P_{fa}');
|
||||
ylim([1e-5,1]);
|
||||
set(gca, 'FontSize', Fontsize);
|
||||
title('P_{fa}')
|
||||
set(gcf, 'position', [200, 300, plot_width, plot_height]);
|
||||
set(gca,'fontsize',20,'fontname','Times');
|
||||
|
||||
figure(3);
|
||||
semilogx(P_fa_node, P_d_node, '-o', ...
|
||||
'Linewidth', Linewidth, ...
|
||||
'MarkerSize', Markersize);
|
||||
grid on;
|
||||
legend('SNR = 10dB');
|
||||
xlabel('Actual P_{fa}');
|
||||
ylabel('P_{d}');
|
||||
xlim([9.99e-6,1]);
|
||||
set(gca, 'FontSize', Fontsize);
|
||||
title('ROC')
|
||||
set(gcf, 'position', [200, 300, plot_width, plot_height]);
|
||||
set(gca,'fontsize',20,'fontname','Times');
|
||||
Reference in New Issue
Block a user