早教吧 育儿知识 作业答案 考试题库 百科 知识分享

为什么matlab出现TherearemoreODEsthanvariables.inits='a(1)=0.0000,a(2)=0.0001,a(3)=0.0183,a(4)=0.3679,a(5)=1.0000,a(6)=0.3679,a(7)=0.0183,a(8)=0.0001,a(9)=0.0000,a(10)=0.0000,a(11)=0.0000,a(12)=0.0000,a(13)=0.0000,a(14)=0.0000,a(15)=0.00

题目详情
为什么matlab出现There are more ODEs than variables.
inits='a(1)=0.0000,a(2)= 0.0001,a(3)=0.0183,a(4)= 0.3679,a(5)=1.0000,a(6)= 0.3679,a(7)=0.0183,a(8)= 0.0001,a(9)=0.0000,a(10)=0.0000,a(11)=0.0000,a(12)=0.0000,a(13)=0.0000,a(14)=0.0000,a(15)=0.0000'
[a1,a2,a3,a4,a5,a6,a7,a8,a9,a10,a11,a12,a13,a14,a15]=dsolve('Da1=i*0.5*a1+i*a2+i*a15','Da2=i*2*0.5*a2+i*a1+i*a3','Da3=i*3*0.5*a3+i*a2+i*a4','Da4=i*4*0.5*a4+i*a5+i*a3','Da5=i*5*0.5*a5+i*a4+i*a6','Da6=i*6*0.5*a6+i*a5+i*a7','Da7=i*7*0.5*a7+i*a6+i*a8','Da8=i*8*0.5*a8+i*a7+i*a9',...
'Da9=i*9*0.5*a9+i*a8+i*a10','Da10=i*10*0.5*a10+i*a9+i*a11','Da11=i*11*0.5*a11+i*a10+i*a12','Da12=i*12*0.5*a12+i*a11+i*a13','Da13=i*13*0.5*a13+i*a12+i*a14','Da14=i*14*0.5*a14+i*a13+i*a15','Da15=i*15*0.5*a15+i*a14+i*a1',inits)
15个变量 15个方程 为什么提示我方程多了?
▼优质解答
答案和解析
你的初值赋值方式错了 应该是a1(0)=.