代码搜索结果

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

fun.m

function f=fun(x) f=100*(x(2)-x(1)^2)^2+(1-x(1))^2

for1.m

for n=1:10 x(n)=sin(n*pi/10); end x

simu1.m

clear i=2; w=0; x(i)=exprnd(10); c(i)=x(i); b(i)=x(i); while b(i)

rnd.m

rand rand(5,3) unifrnd(1,32,1,7) normrnd(70,25,1,50)

time.m

clear t=0; j=0; while t

simu2.m

clear cs=100; for j=1:cs j w(j)=0; i=2; x(i)=exprnd(10); c(i)=x(i); b(i)=x(i); while b(i)

mylp.m

function z=mylp(x) z=2*x(1)^2+x(2)^2-x(1)*x(2)-8*x(1)-3*x(2);

poiss.m

n1=poissrnd(4) n2=poissrnd(4) n3=poissrnd(4) n=n1+n2+n3

chase.m

v=1; dt=0.05; x=[0 0 10 10]; y=[0 10 10 0]; for i=1:4 plot(x(i),y(i),'.'),hold on end d=20; while(d>0.1) x(5)=x(1);y(5)=y(1); for i=1:4 d=sqrt((x(i+1)-x(i))^2+(y(i+1)-y(i

liti1.m

clear k1=0;k2=0;k3=0; for i=1:200 i R1=rand if R1