早教吧作业答案频道 -->数学-->
为什么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个方程 为什么提示我方程多了?
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)=.
看了为什么matlab出现Ther...的网友还看了以下:
设m={a,b,c},n={-1,0,1},若从m到n的映射f满足:f(a)+f(b)=f(c),求 2020-03-31 …
we often go often shopping at 3:00 p.m.改为同义句wo of 2020-05-16 …
Do you know the word "brunch"? In the west, many 2020-05-16 …
我儿子读小学,暑假去英国玩,要办签证,问题一箩筐:1、在职和收入证明,需要填英文版的吗?英文版的S 2020-07-06 …
AB两地相距170千米,上午8:00,甲从A地去B地,2小时后乙从B地出发去A地,到中午12:00 2020-07-18 …
用补码一位乘(比较法)求(-0.1101)*(-0.1010)=?列出分步运算过程.设A=00.用 2020-08-01 …
求行列式第一行1a10...00,第二行-11-a1a2...00,第三行0-11-a2...00, 2020-10-31 …
不超过10m³收费0.5/m³.10³m³以上每增加1.00元/m³而张爷爷家九月缴费20元,他家9 2020-11-14 …
时钟问题某人做一次短途旅行,当时针分针在a.m.8:00~a.m.9:00重合时出发,在p.m.2: 2020-11-26 …
某市为了鼓励市民节约用水,作出了如下的规定:用水量不超过10m³,收费0.5元/m³;10m³以上的 2020-12-29 …