加载中…
个人资料
  • 博客等级:
  • 博客积分:
  • 博客访问:
  • 关注人气:
  • 获赠金笔:0支
  • 赠出金笔:0支
  • 荣誉徽章:
正文 字体大小:

一阶系统的时域分析MATLAB的响应

(2011-10-16 10:55:37)
标签:

杂谈

我所用传递函数1/(5*s+1),MATLAB描绘所得一介系统的单位阶跃函数,单位脉冲函数,单位斜波函数的响应图形,其程序如下:

syms s

num=[1];den=[5 1];

>> sys=tf(num,den)

 

Transfer function:

   1

-------

1

 

>> t=0:5:30;

C=ilaplace((1/(5*s+1))*(1/s))

>> figure(1)

>> step(sys,t);grid

>> xlabel('t');ylabel('c(t)');title('step response');

figure(2);

 impulse(sys,t);grid

xlabel('t');ylabel('c(t)');title('impulse response');

>> figure(3);

u=t;

lsim(sys,u,t,0);grid

>>  xlabel('t');ylabel('c(t)');title('lsim response');

 

 

一阶系统的时域分析MATLAB的响应

 

 

 

 

 

 

从图中我们可以得到一阶系统的单位阶跃响应上升时间为11.3,超调量为0,调节时间为19.7

一阶系统的时域分析MATLAB的响应

 

 

 

一阶系统的时域分析MATLAB的响应

 

 syms s

num=[1];den=[5 1];

sys=tf(num,den)

 

Transfer function:

   1

-------

1

 

>> t=0:5:30;

C=ilaplace((1/(5*s+1))*(1/s))

figure(1)

step(sys,t);grid

xlabel('t');ylabel('c(t)');title('step response');

 

=

 

1-exp(-1/5*t)

 

 

>> hold on

num=[1];den=[4 1];

sys=tf(num,den)

 

Transfer function:

   1

-------

1

 

>> step(sys,t);grid

hold on

>> num=[1];den=[3 1];

sys=tf(num,den)

 

Transfer function:

   1

-------

1

 

>> step(sys,t);grid

 

 

一阶系统的时域分析MATLAB的响应

0

阅读 收藏 喜欢 打印举报/Report
  

新浪BLOG意见反馈留言板 欢迎批评指正

新浪简介 | About Sina | 广告服务 | 联系我们 | 招聘信息 | 网站律师 | SINA English | 产品答疑

新浪公司 版权所有