added task4.2 changed titles of progress windows

This commit is contained in:
ti_mo
2026-06-12 13:30:30 +02:00
parent 021617fe50
commit 9065374ea7
6 changed files with 756 additions and 14 deletions
+10 -2
View File
@@ -3,11 +3,19 @@ apep_values = [250 1000 4000 8000 12000];
results = zeros(numel(apep_values), numel(snrs));
f = waitbar(0, "Starting APEP sweep");
if exist('task2ProgressLabel', 'var')
taskLabel = task2ProgressLabel;
else
taskLabel = "Task 2";
end
progressTitle = taskLabel;
progressStartText = "Starting APEP sweep";
f = waitbar(0, progressStartText, "Name", progressTitle);
progressTotal = numel(apep_values) * numel(snrs);
progressQueue = parallel.pool.DataQueue;
parfor_waitbar(f, progressTotal, "Starting APEP sweep", true);
parfor_waitbar(f, progressTotal, progressStartText, true);
progressListener = afterEach(progressQueue, @(info) parfor_waitbar(f, progressTotal, info, false));
for apep_idx = 1 : numel(apep_values)