📄 exp4_3_.m
字号:
clc
clear
close all
a=[-21,19,-20;19 -21 20;40 -40 -40];
b=[0;1;2];
c=[1 0 2];
d=0;
%绘制闭环系统的阶跃响应曲线
%g=ss(a,b,c,d);
%[y,t,x]=step(g);
[y,x,t]=step(a,b,c,d);
figure(1)
plot(t,y)
title('the step responce')
xlabel('time-sec')
figure(2)
%绘制状态变量的轨迹
plot(t,x)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -