Add Example

This commit is contained in:
Ksyer
2024-11-11 16:32:53 +08:00
parent a2cb6d1825
commit 29ae9585f9
56 changed files with 4029 additions and 0 deletions
@@ -0,0 +1,47 @@
clc
clear
close all
Fontsize = 18;
plot_width = 800;
plot_height = 600;
Linewidth = 2;
Markersize = 8;
Pfa_set = '1e-4';
method = 'cs';
if_part = 1;
SNR = 10;
if if_part == 1
filename = ['Raw_Echo_', num2str(SNR), 'dB_', method, '_part'];
else
filename = ['Raw_Echo_', num2str(SNR), 'dB_', method];
end
load(['./output/Pfa', Pfa_set, '/', filename, '.mat']);
%%
element = 1;
list_r_idx = find(target_list_RDA(:, 1) == element);
figure(1)
scatter3(target_list_RDA(list_r_idx,2), target_list_RDA(list_r_idx,3),...
target_list_RDA(list_r_idx,4), 'filled', 'o')
xlabel('Range(m)');
ylabel('Speed(m/s)');
zlabel('Angle(°)');
zlim([-90, 90]);
ylim([80, 160]);
xlim([17000, 21000]);
set(gca, 'FontSize', Fontsize);
title(['Target detected by ', upper(method), ' under Pfa=', Pfa_set])
set(gcf, 'position', [100, 200, plot_width+100, plot_height+50]);
set(gca,'fontsize',18,'fontname','Times');