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

📄 reinf5_3.m

📁 离散控制系统设计的MATLAB 代码
💻 M
字号:
%%%%%%%%%%% Reinforcement Problem 5.3 %%%%%%%%%%%
%   Discrete-Time Control Problems using        %
%       MATLAB and the Control System Toolbox   %
%   by J.H. Chow, D.K. Frederick, & N.W. Chbat  %
%         Brooks/Cole Publishing Company        %
%                September 2002                 %
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%   ---- Several periodic signals ----
%
clear
disp('Reinforcement Problem 5.3')

Ts = 1/20;               % sampling at 20 Hz
kT = [0:Ts:1]';                    
e_1 = sin(4*pi*kT + 20*pi/180) + 2*cos(26*pi*kT + 45*pi/180);
e_2 = 2*cos(14*pi*kT - 45*pi/180) + cos(36*pi*kT + 70*pi/180);
e_3 = sin(4*pi*kT + 20*pi/180) - 2*cos(14*pi*kT + 135*pi/180);

figure
subplot(3,1,1)
dplot(kT,e_1);grid
legend('e_1(kTs)')
title('Reinforcement Problem 5.3')

subplot(3,1,2)
dplot(kT,e_2);grid
legend('e_2(kTs)')
  
subplot(3,1,3)
dplot(kT,e_3);grid
legend('e_3(kTs)')
xlabel('Time (s)')
%%%%%%%%%%

⌨️ 快捷键说明

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