Ordnerstruktur
This commit is contained in:
@@ -3,10 +3,14 @@ function burst_count = count_error_bursts(err_pos, max_burst_length)
|
||||
% max_burst_length: Maximum length for which bursts are counted (e.g., 10)
|
||||
|
||||
% Sort the error positions to ensure they're in increasing order
|
||||
err_pos = sort(err_pos);
|
||||
err_pos = sort(err_pos(:).');
|
||||
|
||||
% Initialize burst_count array to hold the counts for each burst length
|
||||
burst_count = zeros(1, max_burst_length);
|
||||
|
||||
if isempty(err_pos)
|
||||
return
|
||||
end
|
||||
|
||||
% Find the differences between consecutive error positions
|
||||
diffs = diff(err_pos);
|
||||
|
||||
Reference in New Issue
Block a user