| 查看: 1087 | 回复: 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) |
» 猜你喜欢
296求调剂
已经有4人回复
湖北工业大学 生命科学与健康学院-课题组招收2026级食品/生物方向硕士
已经有5人回复
085601材料工程专硕求调剂
已经有4人回复
341求调剂
已经有6人回复
考研化学学硕调剂,一志愿985
已经有6人回复
302求调剂
已经有9人回复
328求调剂,英语六级551,有科研经历
已经有6人回复
308求调剂
已经有4人回复
化学工程321分求调剂
已经有14人回复
材料专硕326求调剂
已经有7人回复
6楼2010-06-04 13:07:35
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













回复此楼