# matlab形成空数组,【求助】matlab解方程得到一空数组

clc

clear

syms wm rm ra k dt dta n0 Gm  Ga

a11='wm*p21+p12*wm=0';

a21=' -wm*p11-rm*p21+Gm*p31+p22*wm=0';

a31='-k*p31+dt*p41+Ga*p61+p32*wm=0';

a41='Gm*p11-dt*p31-k*p41-Ga*p51+p42*wm=0';

a51='Ga*p41-ra*p51+dta*p61+p52*wm=0';

a61=' -Ga*p31-dta*p51-ra*p61+p62*wm=0';

a12='p22*wm-wm*p11-p12*rm+p13*Gm=0';

a22=' -p12*wm-2*rm*p22+Gm*p32-wm*p21+p23*Gm+n0=0';

a32='-k*p32+dt*p42+Ga*p62-p31*wm-p32*rm+Gm*p33=0';

a42=' Gm*p12-dt*p32-k*p42-Ga*p52-p41*wm-p42*rm+p43*Gm=0';

a52='Ga*p42-ra*p52+dta*p62-p51*wm-p52*rm+p53*Gm=0';

a62=' -Ga*p32-dta*p52-ra*p62-p61*wm-p62*rm+p63*Gm=0';

a13='wm*p23-p13*k+p14*dt+p16*Ga=0';

a23='-wm*p13-rm*p23+Gm*p33-p23*k+p24*dt+p26*Ga=0';

a33='-2*k*p33+dt*p43+Ga*p63+dt*p34+Ga*p36+k';

a43=' p13*Gm-dt*p33-2*k*p43-Ga*p53+dt*p44+Ga*p46=0';

a53='Ga*p43-ra*p53+dta*p63-p53*k+p54*dt+Ga*p56=0';

a63='-Ga*p33-dta*p53-ra*p63-p63*k+p64*dt+Ga*p66=0';

a14='wm*p24+Gm*p11-p13*dt-p14*k-p15*Ga=0';

a24='-wm*p14-rm*p24+Gm*p34+p21*Gm-p23*dt-p24*k-p25*Ga=0';

a34='-2*k*p34+dt*p44+Ga*p64+Gm*p31-dt*p33-Ga*p35=0';

a44='Gm*p14-dt*p34-2*k*p44-Ga*p54+p41*Gm-dt*p43-Ga*p45+k=0';

a54='Ga*p44-ra*p54+dta*p64+p51*Gm-p53*dt-p54*k-Ga*p55';

a64=' -Ga*p34-dta*p54-ra*p64+p61*Gm-p63*dt-p64*k-Ga*p65=0';

a15='wm*p25+p14*Ga-p15*ra+p16*dta=0';

a25='-wm*p15-rm*p25+Gm*p35+p24*Ga-p25*ra+p26*dta=0';

a35=' -k*p35+dt*p45+Ga*p65+Ga*p34-p35*ra+p36*dta=0';

a45=' Gm*p15-dt*p35-k*p45-Ga*p55+Ga*p44-p45*ra+p46*dta=0';

a55='Ga*p45-2*ra*p55+dta*p65+Ga*p54+dta*p56+ra=0';

a65=' -Ga*p35-dta*p55-2*ra*p65+Ga*p64+dta*p66=0';

a16='  wm*p26-p13*Ga-p15*dta-p16*ra=0';

a26=' -wm*p16-rm*p26+Gm*p36-p23*Ga-p25*dta-p26*ra=0';

a36=' -k*p36+dt*p46+Ga*p66-Ga*p33-p35*dta-p36*ra';

a46= 'Gm*p16-dt*p36-k*p46-Ga*p56-Ga*p43-p45*dta-p46*ra=0';

a56='Ga*p46-2*ra*p56+dta*p66-Ga*p53-dta*p55=0';

a66='-Ga*p36-dta*p56-2*ra*p66-Ga*p63-dta*p65+ra=0';

S=solve(a11,a21,a31,a41,a51,a61, a12,a22,a32,a42,a52,a62, a13,a23,a33,a43,a53,a63,  a14,a24,a34,a44,a54,a64, a15,a25,a35,a45,a55,a65, a16,a26,a36,a46,a56,a66, 'p11','p12', 'p13','p14','p15','p16','p21','p22','p23','p24','p25','p26','p31','p32','p33','p34','p35','p36','p41','p42','p43','p44','p45','p46','p51','p52','p53','p54','p55','p56','p61','p62','p63','p64','p65','p66')

S =

[ empty sym ]

• 0
点赞
• 0
收藏
• 0
评论
03-16 2648
07-22 3668
09-21 3万+
07-31 7604
07-22 3万+
04-24 5704
04-22 30万+
04-19 2万+
10-17 2万+
12-10 2155
07-12 2万+

### “相关推荐”对你有帮助么？

• 非常没帮助
• 没帮助
• 一般
• 有帮助
• 非常有帮助

1.余额是钱包充值的虚拟货币，按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载，可以购买VIP、C币套餐、付费专栏及课程。