📄 pendot.m
字号:
% Figure 3.44 Feedback Control of Dynamic Systems, 4e
% Franklin, Powell, Emami
%
function xdot=pendot(t,x) % function pendot
global Wn2 Uo % declare global variables
if t <= 1,
U = Uo;
else U = 0;
end
xdot(1,1)=x(2); % compute derivative of first state variable
xdot(2,1)=-Wn2*sin(x(1)) + U; % compute derivative of second state variable
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -