experiment2_2.m

来自「Simon Haykin的《Communication Systems》(《通信」· M 代码 · 共 50 行

M
50
字号
% Experiment 2, CS: Haykin% phase lock loop and cycle slipping% requires functions lin.m  to run% Experiment2_2.m and Experiment2_1.m are used for Part 3 % of Experiment2.% time intervalt0=0;tf=25;% frequency step =0.1 Hzdelf=0.1;u0=[0 -delf*2*pi];[t,u]=ode23('lin',[t0 tf],u0); plot(t,u(:,2)/2/pi+delf);xlabel('Time (s)')ylabel('f_i (t), (Hz)')hold on% frequency step = 0.2 Hzdelf=0.2;u0=[0 -delf*pi*2]';                                  [t,u]=ode23('lin',[t0 tf],u0); plot(t,u(:,2)/2/pi+delf);xlabel('Time (s)');ylabel('f_i (t), (Hz)');% frequency step =0.3 Hzdelf=0.3;u0=[0 -delf*pi*2]';                                  [t,u]=ode23('lin',[t0 tf],u0); plot(t,u(:,2)/2/pi+delf);xlabel('Time (s)');ylabel('f_i (t), (Hz)');% frequency step =0.4 Hzdelf=4; u0=[0 -delf*pi*2]';                                  [t,u]=ode23('lin',[t0 tf],u0); plot(t,u(:,2)/2/pi+delf);xlabel('Time (s)');ylabel('f_i (t), (Hz)');

⌨️ 快捷键说明

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