系统的结构如下图所示:
写出判断闭环系统稳定性的程序
正确答案:
[num,den]=tfdata(gs,’v’);
temp=roots(den);
temp1=find(real(temp)>=0);
n=length(temp);
ifn~=0
disp(’unstable’)
elsedisp(’stable’)
end
temp=roots(den);
temp1=find(real(temp)>=0);
n=length(temp);
ifn~=0
disp(’unstable’)
elsedisp(’stable’)
end
答案解析:有

微信扫一扫手机做题