代码搜索结果

找到约 12,326 项符合 M 的代码

curvefun3.m

function f=curvefun3(x,tdata) d=300 f=(x(1)\d)*exp(-x(2)*tdata) % x(1)=v; x(2)=k

cn.m

x=[1 2 4 7 9 12 13 15 17]; f=[1.5 3.9 6 11.7 12.6 18.8 20.3 20.6 21.1]; axis([0 18 1 22]) xlabel('x') ylabel('f') y=1:0.1:17; figure(1) plot(x,f,'o') gtext('已知数据点') hold on;pause bb1=inte

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