update pam 6

This commit is contained in:
Silas Oettinghaus
2024-04-22 17:38:27 +02:00
parent cb54f4480e
commit e2e34c6119
5 changed files with 125 additions and 67 deletions

View File

@@ -41,13 +41,13 @@ if length(data_ref) == length(data_in)
ber = sum(errors)/sum(bits);
else
errormsg('Sequence length does not match');
error('Sequence length does not match');
end
function [data_,reference_]=trimseq(data,reference,skipstart,skip_end)
data_ = logical(data(skipstart+1:end-skip_end,:))';
delta_bits = length(reference) - length(data);
skip_end = max(skip_end,delta_bits);