pendot.m

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

M
14
字号
%  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 + =
减小字号Ctrl + -
显示快捷键?