二元函数最小值求解程序错误。

程序: f=@(x)243530*sqrt(294485-76396*cos(x(1)))*sin(x(2)-1.780235837-asin(71*sin(x(1))/sqrt(294485-76396*cos(x(1)))))/sqrt(299526-76396*cos(x(1))-142*sqrt(294485-76396*cos(x(1)))*cos((2)-1.780235837-asin(71*sin(x1)/sqrt(294485-76396**cos(x(1)))));x0=[1;3];[x,b,c,d]=fminsearch(f,x0) 程序太长,截图不全,求解答。

 採用された回答

renidoy
renidoy 2022 年 11 月 21 日

0 投票

1、检查x1、x2的下标;
2、检查小括号。
f = @(x)243530*sqrt(294485-76396*cos(x(1)))*sin(x(2)-1.780235837-asin(71*sin(x(1))/sqrt(294485-76396*cos(x(1)))))/sqrt(299526-76396*cos(x(1))-142*sqrt(294485-76396*cos(x(1)))*cos(x(2)-1.780235837-asin(71*sin(x(1)))/sqrt(294485-76396*cos(x(1)))))

その他の回答 (0 件)

カテゴリ

ヘルプ センター および File ExchangeMATLAB 快速入门 についてさらに検索

タグ

質問済み:

2022 年 11 月 21 日

回答済み:

2022 年 11 月 21 日

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!