|
EDA365欢迎您登录!
您需要 登录 才可以下载或查看,没有帐号?注册
x
我在用place函数的的时候出现了如下的错误! ^; W7 T1 |) Q: X% V2 X$ I X: Q
The "place" command could not place the poles at the specified locations. Probable causes include:7 T( T4 E- s- n- O. n @
* (A,B) is nearly uncontrollable
; @# N* `! l- v4 [7 p8 Q+ E1 J* The specified locations are too close to each other.6 A3 O4 F* W/ r1 R, f
" v" G Y* f8 Y
但是我的状态空间模型是从传递函数转过来的,而且我的极点设计也没有很近呀,下面是我的程序:
7 i3 @, O) d0 T& ^% p! a# A, m. Vnum11=[-24.88];
+ B6 y# q; m$ T$ s) W: k7 Iden11=conv([475.35 1],[511.85 1]);
! g" | `: m7 t! o7 p$ U- ^num12=[-20.634];9 y7 T& U* l( ]5 O+ a; c
den12=conv([491.98 1],[501.11 1]);
0 {, _8 C7 [, N& d& h% {$ A/ Z9 wnum21=[0.42];, \9 j3 ]* n1 X. \7 H
den21=conv([422 1],[604.4 1]);0 p% {) [, ^' w
num22=0.57;5 g$ W3 _7 j6 ^# X; W6 i% _! J
den22=conv([518 1],[502.7 1]);$ P9 x+ Q5 j$ \. T( d1 ?6 \" e$ p
[A1,B1,C1,D1]=tf2ss(num11,den11);
2 }& E6 V. b" ^" c, K! c[A2,B2,C2,D2]=tf2ss(num12,den12);
% z+ }3 N, \- \/ x# T) x[A3,B3,C3,D3]=tf2ss(num21,den21);! B+ ^& W- j: }* d, o: N
[A4,B4,C4,D4]=tf2ss(num22,den22);
% _% F1 M9 w) x6 A5 c* \; JS_m11=ss(A1,B1,C1,D1);* E: R( X# q. {9 D1 x( X& z8 J
S_m12=ss(A2,B2,C2,D2);
1 S0 U2 x- U2 I/ Z7 W; h. _) ~S_m21=ss(A3,B3,C3,D3);
8 W' l! y" J3 k! V7 u" f& sS_m22=ss(A4,B4,C4,D4);% y, d% Y+ G( A
PP=[S_m11,S_m12;S_m21,S_m22];
" z( C8 A U3 P0 S2 A5 j* t1 o[As,Bs,Cs,Ds]=ssdata(PP);%得到传递函数模型
! k2 I) W$ k; j2 |+ `) a G0 Z
+ l4 J) n6 W! ^0 h! m0 y( DJ=[-2+2*j,-2-2*j,-20+j,-20-j,-50,-100,-200,-300];
% Y9 M4 J, {+ P d& C3 CKx=place(As,Bs,J);
) y: q1 B* _, d. ~0 o1 N. V- b) R
6 G: E% m X1 D; t P: D7 J, B) i8 O4 H. ?; P. F8 ]% o
|
|