how to generate ZCZ sequences

11 visualizaciones (últimos 30 días)
Yas Mine
Yas Mine el 28 de Mayo de 2023
hello can you help me on how to generate zcz (zero correlation zone ) i tried this code but it does not work
% Golay complementary pair
Z0 = [-1 -1 1 -1 -1 -1 -1 1];
Z1 = [-1 1 1 1 -1 1 -1 -1];
% Starter matrix Z(0,0)
Z = [Z0; Z1];
% ZCZ parameters
N = 8; % Code length
K = 2; % Number of codes
Z0_length = 2; % Zero-zone length
% Generate ZCZ sequences
for n = 1:N
Z = [Z, Z.*repmat(Z(:,1), 1, size(Z, 2))];
end
% Increase the number of codes
Z = [Z, Z, Z, -Z];
% Display the ZCZ sequences
disp(Z);

Respuestas (0)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by