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

📄 pr2_55.m

📁 Spread Spectrum and CDMA Principles and Applications 书籍和代码
💻 M
字号:
%Problem 2.55;
%Simulating time-compression for LFM pulse;

clear all; close all;
t=[0:0.001:1];  t1=[0:0.001:2]; %time scale;
WD=10; %set frequency deviation 
S=exp(i*pi*t.^2.*WD); %signal complex envelope;
Sbp=imag(S.*exp(i*2*pi.*t*50)); SI=[Sbp zeros(1,1000)]; %input LFM signal;
subplot(211); plot(t1,SI); ylim([-1.2 1.2]); grid;  ylabel('MF input'); %plotting input;
SO1=xcorr(S)/1001; %complex envelope at the matched filter output;
SO=real(SO1.*exp(i*2*pi*(t1-1)*50)); %complete bandpass signal at the matched filter output;;
subplot(212); plot(t1,SO); ylim([-1.2 1.2]); grid; xlabel('t/T'); ylabel('MF output');

⌨️ 快捷键说明

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