reinf5_5.m

来自「离散控制系统设计的MATLAB 代码」· M 代码 · 共 21 行

M
21
字号
%%%%%%%%%%% Reinforcement Problem 5.5 %%%%%%%%%%%
%   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                 %
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%
disp('Reinforcement Problem 5.5')

Ts = 1/100;
kT = [0:Ts:1]';   
e_1 = ones(size(kT));    % constant signal
figure, dplot(kT,e_1)

e_2 = cos(100*2*pi*kT);  % periodic signal
figure, dplot(kT,e_2)

e_3 = sin(200*2*pi*kT + pi/2)
figure, dplot(kT,e_3)
%%%%%%%%%%

⌨️ 快捷键说明

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