| 查看: 1088 | 回复: 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) |
» 猜你喜欢
293求调剂
已经有14人回复
0703化学336分求调剂
已经有6人回复
304求调剂
已经有9人回复
281求调剂(0805)
已经有8人回复
环境领域全国重点实验室招收博士1-2名
已经有3人回复
材料专硕306英一数二
已经有10人回复
301求调剂
已经有6人回复
一志愿天津大学化学工艺专业(081702)315分求调剂
已经有7人回复
302求调剂
已经有6人回复
26博士申请
已经有3人回复
5楼2010-06-04 13:05:18
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













回复此楼