⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 c6_pllpost.m

📁 本程序是一个PLL仿真程序
💻 M
字号:
% File : c6_PLLpost.m
kk = 0;
while kk == 0
    k = menu('Phase Lock Loop Postprocessor',...
        'Input Frequency and VCO Frequency','Input Phase and VCO Phase',...
        'Frequency Error','Phase Error','Phase Plane Plot',...
        'Phase Plane and Time Domain Plots','Exit Program');
    if k == 1
        plot(t,fin,t,fvco)
        title('Input Frequency and VCO Frequency')
        xlabel('Time - Seconds'); ylabel('Frequency - Hz');
        pause
    elseif k == 2
        pvco = phin-phierror;
        plot(t,phin,t,pvco)
        title('Input Phase and VCO Phase')
        xlabel('Time - Seconds'); ylabel('Phase - Randians');
        pause
    elseif k == 3
        plot(t,freqerror);
        title('Frequency Error')
        xlabel('Time - Seconds'); ylabel('Frequency Error - Hz');
        pause
    elseif k == 4
        plot(t,phierror);
        title('Phase Error')
        xlabel('Time - 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 - Hz');
        subplot(212)
        plot(t,fin,t,fvco); grid
        title('Input Frequency and VCO Frequency')
        xlabel('Time - Seconds'); ylabel('Frequency - Hz');
        subplot(111)
    elseif k == 7
        kk =1;
    end
end

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -