Find the minimum value of f(x)=x sin(2x-1) around 0, the corresponding command is ( ) .
选项:
A:[x,fval]=fminbnd(@(x) x*sin(2*x-1),0,0.5);
B:[x,fval]=fminbnd(@(x) x*sin(2*x-1),0);
C:[x,fval]=fminsearch(@(x) x*sin(2*x-1),[0,0.5]);
D:[x,fval]=fminunc(@(x) x*sin(2*x-1),[0,0.5])
发布时间:2024-06-19 08:22:25