代码搜索结果
找到约 12,326 项符合
M 的代码
curvefun2.m
function f=curvefun2(x)
tdata=100:100:1000;
cdata=1e-03*[4.54,4.99,5.35,5.65,5.90,6.10,6.26,6.39,6.50,6.59];
f=cdata-x(1)-x(2)*exp(-0.02*x(3)*tdata)
llgjz.m
t=[0 0.92 1.84 2.95 3.87 4.98 5.9 7.01 7.93 8.97 10.95 12.03 12.95 13.88 14.98 15.90 16.83 17.93 19.04 19.9 20.84 23.88 24.99 25.91];
h=[968 948 931 913 898 881 869 852 839 822 1082 1050 1021 994 965
aa1.m
t=[0.25 0.5 1 1.5 2 3 4 6 8];
c=[19.21 18.15 15.36 14.10 12.89 9.32 7.45 5.24 3.01];
semilogy(t,c,'+')
fun0.m
function f=fun0(x)
f=-(3-2*x).^2*x;
wliti3.m
x0 = [-1, 1];
x=fminunc('fun1',x0)
y=fun1(x)
fun1.m
function f = fun1 (x)
f = exp(x(1))*(4*x(1)^2+2*x(2)^2+4*x(1)*x(2)+2*x(2)+1);
wliti32.m
contour(x,y,z,20)
drawnow %画出当前图形
hold on
plot(-1.2,2,' o ');
text(-1.2,2,'start point')
plot(1,1,'o')
text(1,1,'solution')
wliti43.m
f='100*(x(2)-x(1)^2)^2+(1-x(1))^2';
[x,fval,exitflag,output]=fminsearch(f, [-1.2 2])
wliti2.m
[x,fval]=fminbnd('fun0',0,1.5);
xmax=x
fmax=-fval
wliti1.m
f='2*exp(-x).*sin(x)';
fplot(f,[0,8]); %作图语句
[xmin,ymin]=fminbnd (f, 0,8)
f1='-2*exp(-x).*sin(x)';
[xmax,ymax]=fminbnd (f1, 0,8)