fig3_35.m
来自「现代控制系统(matlab程序)」· M 代码 · 共 18 行
M
18 行
% Chapter 3: Figure 3.35, p. 159%% The time response for nonzero initial% conditions and zero input using lsim.%A=[0 -2;1 -3];B=[2;0];C=[1 0];D=[0];x0=[1 1 ];t=[0:0.01:1];u=0*t;[y,x]=lsim(A,B,C,D,u,t,x0);subplot(211), plot(t,x(:,1))xlabel('time [sec]'), ylabel('x1')subplot(212), plot(t,x(:,2))xlabel('time [sec]'), ylabel('x2')
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?