|
|
EDA365欢迎您登录!
您需要 登录 才可以下载或查看,没有帐号?注册
x
我在用place函数的的时候出现了如下的错误8 w# {6 z: C U) S+ c$ ]
The "place" command could not place the poles at the specified locations. Probable causes include:
/ o. ^& W2 b# H. a h1 |; ~* (A,B) is nearly uncontrollable2 x5 L2 l8 J3 d2 [2 }
* The specified locations are too close to each other.& L: l3 @9 Y X) t% W
4 W* |' b. E) L4 B% P但是我的状态空间模型是从传递函数转过来的,而且我的极点设计也没有很近呀,下面是我的程序:+ E8 Q* t: b/ [6 ]% O
num11=[-24.88];: A1 ]% c p3 |8 M$ z# d$ P( @
den11=conv([475.35 1],[511.85 1]);# `5 B( {6 s" O" W& s7 p# t
num12=[-20.634];1 ^9 T% ?0 U! R) M' Y1 G
den12=conv([491.98 1],[501.11 1]);
! q% p; m2 u# O" C( m+ Pnum21=[0.42];3 w/ _6 e, _& s
den21=conv([422 1],[604.4 1]);
1 n/ h" F1 @: K6 B. j) }6 Nnum22=0.57;. t+ o9 \. c, o$ E0 P
den22=conv([518 1],[502.7 1]);9 {7 [/ P8 w/ l
[A1,B1,C1,D1]=tf2ss(num11,den11);
% ]9 |7 }- `: A; }( o$ ` Z[A2,B2,C2,D2]=tf2ss(num12,den12);: ?4 ~/ m- j& t# `2 }( v
[A3,B3,C3,D3]=tf2ss(num21,den21);
9 R [0 X- [# v( m# H) K[A4,B4,C4,D4]=tf2ss(num22,den22);
' c3 S q; n- N, xS_m11=ss(A1,B1,C1,D1);
7 P& W' M6 E" PS_m12=ss(A2,B2,C2,D2);
- R! E1 o3 C! _! Z6 W- A- \8 H( y9 YS_m21=ss(A3,B3,C3,D3);- g- V/ u9 ]% {5 I$ P0 R
S_m22=ss(A4,B4,C4,D4);* b- d2 f' y" |
PP=[S_m11,S_m12;S_m21,S_m22];
2 v; x P" y; P) q9 L9 j7 H[As,Bs,Cs,Ds]=ssdata(PP);%得到传递函数模型
8 a& r7 M0 j1 L) I/ u/ J! K& n* M1 }& _; f% T
J=[-2+2*j,-2-2*j,-20+j,-20-j,-50,-100,-200,-300];
7 C( }9 e, F: M) _, s: kKx=place(As,Bs,J);
3 l$ f/ ^' r! D% N l1 Y# [4 n! u# t
7 Y, o6 c" j3 K9 { |
|