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

📄 ex5_4.m

📁 离散控制系统设计的MATLAB 代码
💻 M
字号:
%%%%%%%%%%%%%%%%%% Example 5.4 %%%%%%%%%%%%%%%%%%%   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                 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%   ---- Output of a zero-order hold ----%cleardisp('Example 5.4')fs = 10, Ts = 1/fs;           % sampling frequency and periodt = [0:Ts:1]';                % time points from 0 to 1 se = sin(2*pi*t);              % 1-Hz signalfiguredplot(t,e), hold on           % sampled signalstairs(t,e)                   % ZOH outputtt = [0:0.01:1]';             % take tt as continuous timeec = sin(2*pi*tt);            % 1-Hz signalplot(tt,ec,'--'), hold off    % input sine wavexlabel('Time (s)')ylabel('Amplitude')title('Input, sampled signal, and ZOH output for Example 5.4')text(0.52,0.50,'ZOH output')text(0.47,-0.3,'Input')text(0.22,-0.7,'triangles are sampled signal')%%%%%%%%%%

⌨️ 快捷键说明

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