added SINR visualization

This commit is contained in:
2026-04-26 10:59:30 -07:00
parent d07df25528
commit 5cbb395684
4 changed files with 79 additions and 5 deletions
+31 -1
View File
@@ -12,7 +12,7 @@ classdef test_rfSensor < matlab.unittest.TestCase
end
methods (Test)
function plot_SNR(tc)
function plot_RSS(tc)
% Plot sensor performance with no sources of interference
P_TX = 1e-3; % Transmit power (Watts)
BW = 20e6; % Bandwidth (Hz)
@@ -23,5 +23,35 @@ classdef test_rfSensor < matlab.unittest.TestCase
tc.testClass.plotParameters();
end
function plot_SNR(tc)
% Plot sensor performance with no sources of interference
P_TX = 1e-3; % Transmit power (Watts)
BW = 20e6; % Bandwidth (Hz)
f_c = 2e9; % Center frequency (Hz)
G_RX_dBi = 3; % Receiving Antenna Gain (dBi)
tc.testClass = tc.testClass.initialize(P_TX, BW, f_c, G_RX_dBi);
altitude = 30;
tc.testClass.plotPerformance(altitude);
end
function plot_SINR_one_interferer(tc)
% Plot sensor performance with no sources of interference
P_TX = 1e-3; % Transmit power (Watts)
BW = 20e6; % Bandwidth (Hz)
f_c = 2e9; % Center frequency (Hz)
G_RX_dBi = 3; % Receiving Antenna Gain (dBi)
tc.testClass = tc.testClass.initialize(P_TX, BW, f_c, G_RX_dBi);
altitude = 30;
otherSensorsPos = [5, 0, 400]; % relative to main sensor
otherSensors = cell(1, 1);
otherSensors{1} = tc.testClass; % 2 identical sensors
tc.testClass.plotPerformance(altitude, otherSensorsPos, otherSensors);
end
end
end