| 查看: 987 | 回复: 9 | |||
[交流]
【求助】请问下面MATLAB程序哪儿不对呢 已有4人参与
|
|
我想求非线性方程组 df1=diff(F, x(1))=0 df2=diff(F, x(2))=0 以得到x(1),x(2)的解 用下面的程序,错在哪呢,谢谢高人指点 d1=560 d2=4500 p=40000 h1=12 h2=10 h0=3 s1=240 s2=600 sp=5500 s01=320 s02=1000 d0=d1+d2 syms x(1) x(2); F=(sp+(s01+s1)* x(1)+(s02+s2)* x(2))*((( x(1)-1)*h0+h1)*d1/(x(1)*d0)+(( x(2)-1)*h0+h2)*d2/(x(2)*d0)-( x(1)-2)*d1*h0/(x(1)*p)-( x(2)-2)*d2*h0/(x(2)*p)) df1=diff(F, x(1)) df2=diff(F, x(2)) fun=inline('df1,df2', 'x'); x0=[1;1]; x=fsolve('fun',x0) |
» 猜你喜欢
论文终于录用啦!满足毕业条件了
已经有28人回复
假如你的研究生提出不合理要求
已经有4人回复
所感
已经有3人回复
要不要辞职读博?
已经有7人回复
不自信的我
已经有11人回复
北核录用
已经有3人回复
实验室接单子
已经有3人回复
磺酰氟产物,毕不了业了!
已经有8人回复
求助:我三月中下旬出站,青基依托单位怎么办?
已经有10人回复
26申博(荧光探针方向,有机合成)
已经有4人回复
flyinuniverse58
木虫 (正式写手)
- 应助: 3 (幼儿园)
- 金币: 3913.3
- 散金: 20
- 帖子: 383
- 在线: 141.1小时
- 虫号: 496575
- 注册: 2008-01-19
- 性别: GG
- 专业: 分离过程
★ ★
小木虫(金币+0.5):给个红包,谢谢回帖交流
adu886886(金币+1):3k u 2010-06-03 14:07:37
小木虫(金币+0.5):给个红包,谢谢回帖交流
adu886886(金币+1):3k u 2010-06-03 14:07:37
|
I think the problem is the misusing of 'syms'. 'Syms' doesn't support the variable parameter array. You could try to change all the x(1), x(2) to x1, x2. If you want to use variable parameter as array, you can try another software, name is 1stopt. |
2楼2010-06-03 05:55:30
flyinuniverse58
木虫 (正式写手)
- 应助: 3 (幼儿园)
- 金币: 3913.3
- 散金: 20
- 帖子: 383
- 在线: 141.1小时
- 虫号: 496575
- 注册: 2008-01-19
- 性别: GG
- 专业: 分离过程
3楼2010-06-03 05:56:24
zzuwangshilei
木虫 (正式写手)
- 仿真EPI: 5
- 应助: 0 (幼儿园)
- 贵宾: 0.076
- 金币: 4164.7
- 散金: 50
- 红花: 7
- 帖子: 722
- 在线: 71.7小时
- 虫号: 551346
- 注册: 2008-04-26
- 性别: GG
- 专业: 能源化工
4楼2010-06-03 09:52:03
5楼2010-06-04 13:05:18
6楼2010-06-04 13:07:35
7楼2010-06-04 13:11:28
flyinuniverse58
木虫 (正式写手)
- 应助: 3 (幼儿园)
- 金币: 3913.3
- 散金: 20
- 帖子: 383
- 在线: 141.1小时
- 虫号: 496575
- 注册: 2008-01-19
- 性别: GG
- 专业: 分离过程
8楼2010-06-05 09:01:06
9楼2010-06-05 23:11:29

10楼2010-06-07 10:13:56












回复此楼
