| 6 | 1/1 | 返回列表 |
| 查看: 1340 | 回復(fù): 5 | |||
lz2239129鐵蟲 (初入文壇)
|
[求助]
運行函數(shù)文件出錯,Input argument "y" is undefined.
|
|
function F=fu_pin3(x,y) %%options=optimset('Display','iter');[x,fval] = fsolve(@fu_pin1,x0,options) sigma1=0.03; omega1=3.8545; omega2=12.491; Gamma2=250.2553;Gamma3=310.17;Gamma4=270.794669; M1=-85713.468;M2=-85710.67; alpha1=-1027.166;alpha2=-4421.8;alpha3=-4415.828;alpha4=-13657.89;eta=1000; sigma2=0.01; F=[sigma2*(24*omega2*y)-(8*omega2*y*sigma1+sqrt((Gamma4*x^3)^2-(4*M2*omega2*y^2)-y*(alpha2*x^2+alpha4*y^2))); sigma2*(8*omega1*x^4*Gamma4-24*omega2*x^2*y^2*(2*Gamma2+Gamma3))-(sqrt((4*eta*Gamma4*x^3)^2-(4*M1*omega1*x^4+M2*omega2*x^2*y^2*(2*Gamma2+Gamma3))^2)+x^2*y*(2*Gamma2+Gamma3)*(-8*omega2*y*sigma1+y*(alpha2*x^2+alpha4*y^2)-Gamma4*x^4*(alpha1*x^2+alpha3*y^2)))]; 在主頁面運行之后出現(xiàn)錯誤 [x,y,fval] = fsolve(@fu_pin3,x0,options) ??? Input argument "y" is undefined. Error in ==> fu_pin3 at 10 F=[sigma2*(24*omega2*y)-(8*omega2*y*sigma1+sqrt((Gamma4*x^3)^2-(4*M2*omega2*y^2)-y*(alpha2*x^2+alpha4*y^2))); Error in ==> fsolve at 248 fuser = feval(funfcn{3},x,varargin{:}); Caused by: Failure in initial user-supplied objective function evaluation. FSOLVE cannot continue. 請問這是怎么回事,在函數(shù)文件中y已經(jīng)有了呀,要改應(yīng)該怎么改 |

鐵蟲 (初入文壇)

鐵蟲 (初入文壇)
專家顧問 (小有名氣)
![]() |
專家經(jīng)驗: +8 |
鐵蟲 (初入文壇)

鐵蟲 (初入文壇)
| 6 | 1/1 | 返回列表 |
| 最具人氣熱帖推薦 [查看全部] | 作者 | 回/看 | 最后發(fā)表 | |
|---|---|---|---|---|
|
[考研]
|
.6lL 2026-03-18 | 4/200 |
|
|---|---|---|---|---|
|
[考研] 0703化學(xué)調(diào)劑,求各位老師收留 +9 | 秋有木北 2026-03-14 | 9/450 |
|
|
[考研] 求材料調(diào)劑 +7 | 隔壁陳先生 2026-03-12 | 7/350 |
|
|
[考研] 288求調(diào)劑,一志愿華南理工大學(xué)071005 +4 | ioodiiij 2026-03-17 | 4/200 |
|
|
[考研] 265求調(diào)劑 +3 | 梁梁校校 2026-03-17 | 3/150 |
|
|
[考研] 268求調(diào)劑 +6 | 簡單點0 2026-03-17 | 6/300 |
|
|
[考研] 301求調(diào)劑 +9 | yy要上岸呀 2026-03-17 | 9/450 |
|
|
[考研] 296求調(diào)劑 +5 | 大口吃飯 身體健 2026-03-13 | 5/250 |
|
|
[考研] 268求調(diào)劑 +7 | 好運連綿不絕 2026-03-12 | 8/400 |
|
|
[考研] 一志愿,福州大學(xué)材料專碩339分求調(diào)劑 +3 | 木子momo青爭 2026-03-15 | 3/150 |
|
|
[考研] 東南大學(xué)364求調(diào)劑 +5 | JasonYuiui 2026-03-15 | 5/250 |
|
|
[考研] 085601材料工程315分求調(diào)劑 +3 | yang_0104 2026-03-15 | 3/150 |
|
|
[考研] 288求調(diào)劑 +4 | 奇點0314 2026-03-14 | 4/200 |
|
|
[考研] 297一志愿上交085600求調(diào)劑 +5 | 指尖八千里 2026-03-14 | 5/250 |
|
|
[考研] 255求調(diào)劑 +3 | 李嘉慧, 2026-03-12 | 4/200 |
|
|
[考研] 297求調(diào)劑 +4 | 學(xué)海漂泊 2026-03-13 | 4/200 |
|
|
[考研] 招收0805(材料)調(diào)劑 +3 | 18595523086 2026-03-13 | 3/150 |
|
|
[考研] 311求調(diào)劑 +3 | 冬十三 2026-03-13 | 3/150 |
|
|
[考研] 工科278分求調(diào)劑 +5 | 周慢熱啊 2026-03-12 | 7/350 |
|
|
[考研] 一志愿211化學(xué)學(xué)碩310分求調(diào)劑 +8 | 努力奮斗112 2026-03-12 | 9/450 |
|