pr2_55.m

来自「Spread Spectrum and CDMA Principles and 」· M 代码 · 共 12 行

M
12
字号
%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 + =
减小字号Ctrl + -
显示快捷键?