first order system analysis 自控原理 一阶系统的matlab分析

一阶系统的matlab分析




first order system analysis 自控原理 一阶系统的matlab分析_第1张图片

上图是用simulink仿真的一阶系统对阶跃型号的响应


传递函数可以简化为theta(s) = K/(Ts+1)

为方便研究,K为常数,令K等于1。
探究不同的T情况下,一阶系统对阶跃激励的响应。
first order system analysis 自控原理 一阶系统的matlab分析_第2张图片
时间常数T越大,反应越迟钝,时间常数T越小,反应越敏捷
代码很简单的,matlab各种封装好的数学处理函数,用起来很方便,和C比起来难度不知道低多少,我们要做的就是不知道就google。然后just use the function is OK!
source code:
%%*************************************************************
% code writer: EOF
% code date:2014.03.18
% e-mail: [email protected]
% code purpose : 
%           I just want to share with someone who is interesting
% in adaptive control. This code is to help people to understand
% first order system.
%%**************************************************************
clear all
clc
syms s f t m;
K = 1;
hold on;
figure(1);
for  T = 1:4
    f = (K./(T.*s+1)).*(1./s);
    m = ilaplace(f);
    ezplot(m,[0,10]);
end

随着T的增大,可以看出,系统趋向于稳定的时间越长,响应速度越差。

Thank you。


你可能感兴趣的:(matlab,自动控制原理,一阶系统)