-
Notifications
You must be signed in to change notification settings - Fork 24
/
Copy pathmain.m
40 lines (33 loc) · 1.09 KB
/
main.m
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
% Integrated Sensing and Communication - Physical Layer Model (ISAC-PLM)
%
% 2019~2022 NIST/CTL Steve Blandino, Neeraj Varshney, Jian Wang
% This file is available under the terms of the NIST License.
%%
clear getPrecodedRxSignal
close all
clc
%% Input
scenarioNameStr = 'examples/bistaticLivingRoomTRN-T';
% scenarioNameStr = 'singleHumanTargetMultiAntennaTRN';
%% Set path
rootFolderPath = pwd;
fprintf('--------ISAC-PLM --------\n');
fprintf('Current root folder:\n\t%s\n',rootFolderPath);
[path,folderName] = fileparts(rootFolderPath);
if strcmp(folderName, 'isac-plm')
fprintf('Start to run.\n');
else
error('The root folder should be ''isac-plm''');
end
addpath(genpath(fullfile(rootFolderPath,'src')));
addpath(genpath(fullfile(rootFolderPath,'data')));
fprintf('Use customized scenario: %s.\n',scenarioNameStr);
%% Run
if isfile(fullfile([scenarioNameStr, '\Input\sensConfig.txt']))
runIsac(scenarioNameStr);
else
% Generate BER PER and data rate
runPHYErrorRateDataRate(scenarioNameStr);
% Generate Spectral Efficiency
runPHYSpectralEfficiency(scenarioNameStr);
end