?? cp0901_sm2_ook.m
字號:
function [sm2] = cp0901_sm2_PAM(pulse,fc)
% ---------------------------------
% Step One - Evaluation of SIGMAm^2
% ---------------------------------
fc=50e9;
tm=5e-9;
smp=fc*tm;
t=linspace(-tm/2,tm/2,smp);
B=4e9;
mu=B/tm;
pulse=cos(2*pi*4e9*t+pi*mu*(t.^2));
dt = 1 / fc; % sampling period
pulse_samples = length(pulse);
% energy normalization
Ep = sum((pulse.^2).*dt);
pulse = pulse./sqrt(Ep);
LS = 3*pulse_samples;
pa = zeros(1,LS);
pb = zeros(1,LS);
pa(1:pulse_samples) = pulse;
pb(1:pulse_samples) = pulse;
for tau = 0 : (LS-1)
pc = cp0804_signalshift(pa,fc,tau*dt);
% result of the internal integration
I(tau+1) = (sum((pc.*pb).*dt))^2;
end % for tau = 0 : (LS-1)
sm2 = sum(I.*dt);
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -