資源簡介
主要是costas環(huán)的仿真,有利于對costas環(huán)的理解
代碼片段和文件信息
%?File:?pll2sin.m
?%?Software?given?here?is?to?accompany?the?textbook:?W.H.?Tranter?
%?K.S.?Shanmugan?T.S.?Rappaport?and?K.S.?Kosbar?Principles?of?
%?Communication?Systems?Simulation?with?Wireless?Applications?
%?Prentice?Hall?PTR?2004.
?%
?w2b=0;?w2c=0;?s5=0;?phivco=0;????????????????????????????????%initialize
?twopi=2*pi;????????????????????????????????????????????????????????????????????????%?define?2*pi
?twofs=2*fs;????????????????????????????????????????????????????????????????????????%?define?2*fs
?G=2*pi*fn*(zeta+sqrt(zeta*zeta-lambda));????????%?set?loop?gain
?a=2*pi*fn/(zeta+sqrt(zeta*zeta-lambda));????????%?set?filter?parameter
?a1=a*(1-lambda);?a2?=?a*lambda;????????????????????????????????%?define?constants
?phierror?=?zeros(1npts);??????????????????????????
評論
共有 條評論