⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 pr7_33.m

📁 Spread Spectrum and CDMA Principles and Applications 书籍和代码
💻 M
字号:
%Problem 7.33;
%calculation of squared distance between two group signals in a synchronous DS CDMA;

S=hadamard(8); S=S(1:8,:); %signature matrix, columns are signatures;
dgn=diag(S'*S); S=S*diag(1./sqrt(dgn)); %normalizing all signatures;
Ro=S'*S; %signature correlation matrix;
K=size(S,2); %number of users;
b=2*unidrnd(2,2,K)-3; %two random users bit patterns;
Eps=b(1,:)-b(2,:); %bit pattern difference vector;
dsq=Eps*Ro*Eps'; %squared distance according to (7.15);
fprintf('\n');
disp('squared distance');
disp(dsq);

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -