发布网友 发布时间:2024-10-24 17:14
共1个回答
热心网友 时间:23小时前
clear;clc
x0=8;
eq=@(x)exp(x)-x^5;
[xmin fval]=fminsearch(eq,x0)
ezplot(eq,[7 14])
hold on
plot(xmin,fval,'*r')
%%%%%%%%%%%%%%
运行结果:
xmin =
11.3134
fval =
-1.0343e+005
热心网友 时间:23小时前
clear;clc
x0=8;
eq=@(x)exp(x)-x^5;
[xmin fval]=fminsearch(eq,x0)
ezplot(eq,[7 14])
hold on
plot(xmin,fval,'*r')
%%%%%%%%%%%%%%
运行结果:
xmin =
11.3134
fval =
-1.0343e+005