?? pr3_29.asv
字號(hào):
%Problem 3.29;
%electromagnetic compatibility and spread spectrum;
clear all; close all;
t=[0.001:0.001:2]; N=length(t); %time scale;
Wd=100;
WD=[0,Wd,-Wd]; %three deviation values;
S=[exp(i*pi*WD'*(t(1:N/2)-0.5).^2),zeros(3,N/2)]; %complex envelopes of signals with three deviations;
plot(t,S(1))
for k=1:3 %in the loop response is found of filter matched to k-th signal to each of three signals;
H=S(k,1:N/2);
H=H(N/2:-1:1);
E=norm(H)^2; %matched filter pulse response (conjugated) for k-th signal;
y=filter(H,1,S')/E; %filtering of all three signals by the filter matched to k-th signal;
y=abs(y)'; %real envelopes of three signals at the k-th matched filter output;
YL=[num2str(k),' MF env'];
subplot(3,1,k); plot(t,y(1,:),'k',t,y(2,:),'b',t,y(3,:),'r'); xlabel('t/T'); ylabel(YL); ylim([-0.2,1.2]);
end;
%title('black, blue and red are for 1-st, second, and third signals')
?? 快捷鍵說(shuō)明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -