new plots for Diss. Mostly AI gen. Few changes in actual codebase
This commit is contained in:
@@ -3,7 +3,11 @@ function [Bits, Symbols, Scpe_cell, found_sync] = loadAndSyncRunSignals(dataTabl
|
||||
%
|
||||
% Inputs:
|
||||
% dataTable - one-row table with run metadata and signal file paths
|
||||
% options - struct with storage_path, start_occurence and max_occurences
|
||||
% options - scalar struct with the following fields:
|
||||
% storage_path - root directory containing the signal files.
|
||||
% start_occurence - first synchronized occurrence to return (default: 1).
|
||||
% max_occurences - maximum number of synchronized occurrences to return
|
||||
% (default: 1).
|
||||
%
|
||||
% Outputs:
|
||||
% Bits - transmitted bit reference
|
||||
@@ -11,6 +15,14 @@ function [Bits, Symbols, Scpe_cell, found_sync] = loadAndSyncRunSignals(dataTabl
|
||||
% Scpe_cell - synchronized received signal occurrences
|
||||
% found_sync - true when a valid synchronization was found
|
||||
|
||||
arguments
|
||||
dataTable
|
||||
options
|
||||
% options.storage_path
|
||||
% options.start_occurence = 1
|
||||
% options.max_occurences = 1
|
||||
end
|
||||
|
||||
found_sync = 0;
|
||||
tempLocalStorage = 1;
|
||||
Scpe_cell = {};
|
||||
@@ -130,7 +142,7 @@ end
|
||||
function Scpe_cell = selectSyncedOccurrences(Scpe_cell, options)
|
||||
available_occurences = length(Scpe_cell);
|
||||
start_occurence = floor(getOption(options, 'start_occurence', 1));
|
||||
max_occurences = floor(getOption(options, 'max_occurences', available_occurences));
|
||||
max_occurences = floor(getOption(options, 'max_occurences', 1));
|
||||
|
||||
if available_occurences < 1
|
||||
warning('loadAndSyncRunSignals:NoSyncedOccurrences', ...
|
||||
|
||||
Reference in New Issue
Block a user