task1 call with task4 mcs values

This commit is contained in:
ti_mo
2026-06-12 12:50:59 +02:00
parent 5c7fee34e2
commit 1918447edc
+10 -5
View File
@@ -2,11 +2,11 @@
% use these fields to select the task that should be calculated
do_task1 = false;
do_task2 = false;
do_task3_1 = false;
do_task3_2 = false;
do_task2 = true;
do_task3_1 = true;
do_task3_2 = true;
do_task3_2_simple_calc = true;
do_task4 = false;
do_task4 = true;
carrier_frequency = 2.4e9;
wifi_be_subcarrier_spacing = 78.125e3;
@@ -79,7 +79,7 @@ end
if do_task3_2_simple_calc
carrier_frequencies = [1e9 2.4e9 5e9 5.8e9 6e9 12e9 24e9 60e9];
meanDopplerShifts = zeros(1, numel(carrier_frequencies));
parfor f_idx = 1 : numel(carrier_frequencies);
parfor f_idx = 1 : numel(carrier_frequencies)
dopplerShifts = arrayfun(@(el) dopplerShiftCircularOrbit(el, leo_altitude, 0, carrier_frequencies(f_idx)), elevationAngles);
meanDopplerShifts(f_idx) = mean(dopplerShifts);
end
@@ -91,3 +91,8 @@ if do_task3_2_simple_calc
fprintf("| %.1f GHz | ~%.2fkHz | ~%.2f |\n", carrier_frequencies(f_idx) / 1e9, meanDopplerShifts(f_idx) / 1e3, meanDopplerShifts(f_idx) / wifi_be_subcarrier_spacing);
end
end
if do_task4
use_t1_as_t4 = true;
task1;
end