c6_pllpost.m
来自「该程序是二阶琐相环的防震实例 仿真结果给出了二阶琐相环的相平面」· M 代码 · 共 49 行
M
49 行
kk=0;
while kk == 0
k=menu('Phese Lock Postprocessor',...
'Input Frequency and VCO Frequency','Input Phase and VCO Phase',...
'Phase plane and Time Domain Plots','Exit Program');
if k == 1
plot(t,fin,t,fvco)
title('Input Frequency and VCO Frequency')
xlabel('Times-Seconds'); ylabel('Frequency-Hetrz');
pause
elseif k ==2
pvco = phin-phierror;
plot(t,phin,t,fvco)
title('Input Phase and VCO Phase')
xlabel('Times-Seconds'); ylabel('Phase-Radians');
pause
elseif k ==3
plot(t,freqerror);
title('Frequency Error')
xlabel('Times-Seconds'); ylabel('Frequency Error-Hetrz');
pause
elseif k ==4
plot(t,phierror);
title('Phase Error')
xlabel('Times-Seconds'); ylabel('Phase Error-Radians');
pause
elseif k == 5
ppplot
elseif k == 6
subplot(211);
phierrn= phierror/pi;
plot(phierrn,freqerror);
grid;
title('Phase Plane Plot');
xlabel('Phase Error /Pi'); ylabel('Frequency Error - Hertz ');
subplot(212)
plot(t,fin,t,fvco);grid
title('Input Frequency and VCO Frequency')
xlabel('Times-Seconds'); ylabel('Frequency Error-Hetrz');
subplot(111)
elseif k==7
kk=1;
end
end
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?