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

📄 pr6_54.m

📁 Spread Spectrum and CDMA Principles and Applications 书籍和代码
💻 M
字号:
%Problem 6.54;
%Analyis of radar array ACF;

FC=[1,2,3,4,5,6,7,8,7,4,3,9,9,5,8,2,6,5,1,4,2,1,3,7]; %set up frequency code;
N=length(FC); M=max(FC); %length and number of frequencies;
subplot(211); stem([0:N],[FC,0]); ylabel('Fr. code'); xlabel('i'); xlim([0,N]); ylim([-1,M+1]); grid; %plotting frequency code;
Ref=kron(ones(N-1,1),FC); %creates convenient reference to compare shifts to;
FCS=[]; %template for shifted code matrix;
for k=1:N-1
    FCS(k,:)=[zeros(1,k),FC(1:N-k)];
end; %rows are all shifts of FC;
R=FCS==Ref; R=[N,sum(R'),0]; %aperiodic ACF ready;
subplot(212); plot([0:N],R); xlim([0,N]); ylim([-1,N+1]); grid; xlabel('m'); ylabel('R(m)'); %plotting aperiodic ACF;

⌨️ 快捷键说明

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