| 查看: 1063 | 回复: 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) |
» 猜你喜欢
286求调剂
已经有5人回复
085601求调剂
已经有3人回复
302求调剂
已经有5人回复
考研化学学硕调剂,一志愿985
已经有5人回复
328求调剂,英语六级551,有科研经历
已经有4人回复
机械专硕325,寻找调剂院校
已经有5人回复
材料专硕306英一数二
已经有6人回复
伙伴们,祝我生日快乐吧
已经有26人回复
333求调剂
已经有7人回复
0854控制工程 359求调剂 可跨专业
已经有9人回复
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













回复此楼

5