Skip to content

Commit 130c20e

Browse files
authored
Merge pull request #3 from Wireless-Information-Networking/hotfix/MATLAB-Results
Hotfix/matlab results
2 parents 66e4ad0 + 0ff9669 commit 130c20e

16 files changed

+37
-4
lines changed

MATLAB/process_experimental_data.m

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
dataDir = 'filepath'; % TODO: Set base directory path for CSV files
2525
tagID = '000233b2ddd9014000000000'; % Target RFID tag ID
2626
c = 3e8; % Speed of light approximation [m/s]
27-
% Alt.: c = physconst('LightSpeed'); % Speed of light, requires Antenna Toolkit [m/s]
27+
% Alt.: c = physconst('LightSpeed'); % Speed of light, requires Antenna Toolbox [m/s]
2828

2929
%% STEP 2: Load Files
3030
fileList = dir(fullfile(dataDir, '**', '*.csv')); % Recursive search for files in subdirectories, see README.md documentation to understand the file structure and naming convention
@@ -73,10 +73,10 @@
7373
rssi2 = t2.peakRssi; % Peak RSSI for Antenna 2
7474
mag1 = sqrt(10.^(rssi1 / 10)); % Convert RSSI to linear scale for Antenna 1
7575
mag2 = sqrt(10.^(rssi2 / 10)); % Convert RSSI to linear scale for Antenna 2
76-
% STEP 3.7: Create phasors
76+
% STEP 3.8: Create phasors
7777
phasor1 = mag1 .* exp(1j * phi1); % Create phasor for Antenna 1
7878
phasor2 = mag2 .* exp(1j * phi2); % Create phasor for Antenna 2
79-
% STEP 3.8: Save entry
79+
% STEP 3.9: Save entry
8080
entry = struct(); % Initialize a new entry structure
8181
entry.filename = fname; % Store filename
8282
entry.date = dateStr; % Store date string
@@ -91,7 +91,7 @@
9191
entry.rssi2 = rssi2; % Store RSSI for Antenna 2
9292
entry.phasor1 = phasor1; % Store phasor for Antenna 1
9393
entry.phasor2 = phasor2; % Store phasor for Antenna 2
94-
% STEP 3.9: Append to array + Confirmation
94+
% STEP 3.10: Append to array + Confirmation
9595
allData = [allData; entry]; % Append the new entry to the allData array
9696
fprintf('Processed: %s\n', fname); % Debug message: display processed file name
9797
catch ME

README.md

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,3 +113,36 @@ A comprehensive end-to-end RFID AoA estimation pipeline that:
113113
- Heatmap representations
114114
- Performs error analysis and method comparison
115115
- Outputs organized figures and complete analysis reports
116+
117+
## 📁 Repository Structure
118+
119+
The repository is organized with the following key directories:
120+
121+
### `/MATLAB`
122+
123+
Contains all MATLAB implementation scripts:
124+
125+
- `process_experimental_data.m`: Preprocessing script for raw CSV data
126+
- `antenna_array_processing.m`: Complete end-to-end AoA analysis pipeline
127+
128+
### `/figures`
129+
130+
Stores generated visualization outputs from the analysis:
131+
132+
- AoA estimation plots
133+
- Spectral analysis visualizations
134+
- 3D beam pattern representations
135+
- Method comparison charts
136+
- Error analysis visualizations
137+
138+
Example figures are included to demonstrate the expected output format.
139+
140+
### `/results`
141+
142+
Contains processed data and analysis results:
143+
144+
- `rfid_array_data.mat`: Preprocessed dataset ready for analysis
145+
- `complete_analysis.mat`: Comprehensive results from all estimation methods
146+
- Performance metrics and statistical evaluations
147+
148+
Example result files are provided to illustrate the data structure.

figures/3d_error_analysis.png

144 KB
Loading

figures/aoa_analysis_D0.81.png

109 KB
Loading

figures/aoa_analysis_D1.11.png

108 KB
Loading

figures/aoa_analysis_D1.41.png

108 KB
Loading

figures/method_comparison.png

135 KB
Loading

figures/ml_analysis.png

64.8 KB
Loading
114 KB
Loading
33.3 MB
Binary file not shown.

0 commit comments

Comments
 (0)