我在做二阶系统状态空间,但提示:
下面这是程序,(网上找的)提示说未定义a0;有大神在指导下么?
如果程序不对帮忙改下吧,真心急用!
先拜谢啦!
num=[a0 a1];
den=[b0 b1 b2];
[A,B,C,D]=tf2ss(num,den);
Qc=ctrb(A,B);
x=rank(Qc);
Qo=obsv(A,C);
y=rank(Qo);
if x==size(A)
str1='The system is controllable!';
else str2='The system is uncontrollable!';
end
if y==size(A)
str2='The system is observable!';
else str2='The system is unobservable!';
End
-
一周热门 更多>