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

程序: 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) 程序太长,截图不全,求解答。

 Accepted Answer

renidoy
renidoy on 21 Nov 2022

0 votes

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)))))

More Answers (0)

Categories

Find more on MATLAB 快速入门 in Help Center and File Exchange

Tags

Asked:

on 21 Nov 2022

Answered:

on 21 Nov 2022

Community Treasure Hunt

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

Start Hunting!