代码搜索结果
找到约 12,326 项符合
M 的代码
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
lpconst.m
function lpc=lpconst(x)
if 3*x(1)+x(2)-10=-0.5
lpc=1;
else
lpc=0;
end
randlp.m
function [sol,r1,r2]=randlp(a,b,n)
debug=1;
a=0;
b=10;
n=1000;
r1=unifrnd(a,b,n,1);
r2=unifrnd(a,b,n,1);
sol=[r1(1) r2(1)];
z0=inf;
for i=1:n
x1=r1(i);
x2=r2(i);
lpc=lpconst([x1