资源简介
主要是costas环的仿真,有利于对costas环的理解
代码片段和文件信息
% 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);
评论
共有 条评论