| 查看: 1134 | 回复: 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) |
» 猜你喜欢
机械工程264学硕求调剂
已经有3人回复
264求调剂
已经有9人回复
求调剂
已经有6人回复
22408 266求调剂
已经有7人回复
求调剂
已经有14人回复
273求调剂
已经有43人回复
307求调剂
已经有13人回复
327求调剂
已经有7人回复
338求调剂
已经有6人回复
326分,一志愿沪9,求生物学调剂
已经有3人回复
flyinuniverse58
木虫 (正式写手)
- 应助: 3 (幼儿园)
- 金币: 3913.3
- 散金: 20
- 帖子: 383
- 在线: 141.1小时
- 虫号: 496575
- 注册: 2008-01-19
- 性别: GG
- 专业: 分离过程
8楼2010-06-05 09:01:06
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














回复此楼
10