fig6_57b.m

来自「包含了控制理论的各种仿真程序」· M 代码 · 共 28 行

M
28
字号
% Fig. 6.57b   Feedback Control of Dynamic Systems, 4e 
%             Franklin, Powell, Emami
%

clear all;
close all;
% response comparison of continuous and digital control ramps.

clear
clf
sim('fig6_57d')
r=[0 2];   %reference input
t=[0 2];
%subplot(2,1,1)
plot(t,r,'r--')
hold on
plot(ycd(:,1),ycd(:,2))
plot(ycd(:,1),ycd(:,3),'m:')
title('Figure 6.57(b) Ramp Responses of Digital and Continuous Controllers')
ylabel('y')
xlabel('Time (sec)')
text(.84,.7, '\leftarrow continuous  controller')
text(.33,.1, '\leftarrow digital  controller')
text(.87,.9,'input ramp, r \rightarrow','HorizontalAlignment','right')
grid
hold off

⌨️ 快捷键说明

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