mirror of
https://github.com/saitohirga/WSJT-X.git
synced 2024-11-15 16:42:12 -05:00
costasxcorr is a Gnu Octave script that calculates the cross correlation between Costas arrays.
This commit is contained in:
parent
c4ee0a2b41
commit
86a5ae6596
14
lib/fsk4hf/costasxcorr.m
Normal file
14
lib/fsk4hf/costasxcorr.m
Normal file
@ -0,0 +1,14 @@
|
||||
# Gnu Octave script to calculate
|
||||
# cross correlation between 2 Costas arrays
|
||||
costas1=[2,5,6,0,4,1,3];
|
||||
costas2=[3,1,4,0,6,5,2];
|
||||
array1=zeros(7,7);
|
||||
array2=zeros(7,7);
|
||||
for i=1:7
|
||||
array1(i,costas1(i)+1)=1;
|
||||
array2(i,costas2(i)+1)=1;
|
||||
endfor
|
||||
xcorr2(array1,array1,"none")
|
||||
xcorr2(array2,array2,"none")
|
||||
xcorr2(array1,array2,"none")
|
||||
|
Loading…
Reference in New Issue
Block a user