代码搜索:Nearest
找到约 1,596 项符合「Nearest」的源代码
代码结果 1,596
www.eeworm.com/read/438370/7732070
m exp2_16.m
%curve interpolation
ys=[0 0.9 0.6 1 0 0.1 -0.3 -0.7 -0.9 -0.2]; %已有的样本点ys
xs=0:length(ys)-1; %已有的样本点xs
x=0:0.1:length(ys)-1;%新的样本点x
y1=interp1(xs,ys,x,'nearest'); %插值产生新的样本点y1
y2=interp1(xs,ys,
www.eeworm.com/read/398819/7918792
m odd.m
function y=odd(x);
%ODD Round towards nearest odd value.
% Y=ODD(X) rounds each element of X towards the nearest odd
% integer value. If an element of X is even, ODD adds +1 to
% this value. X can b
www.eeworm.com/read/198548/7928444
m odd.m
function y=odd(x);
%ODD Round towards nearest odd value.
% Y=ODD(X) rounds each element of X towards the nearest odd
% integer value. If an element of X is even, ODD adds +1 to
% this value. X can b
www.eeworm.com/read/433368/7937573
m e0613.m
x=0:10;y=sin(x);xi=0:.25:10;
% 将插值方法定义为单元数组
strmod={'nearest','linear','spline','cubic'}
% 将X轴标识定义为单元数组
strlb={'(a) method=nearest', '(b) method=linear','(c) method=spline', '(d) m
www.eeworm.com/read/198282/7942678
m examp8_1.m
x=0:.12:1;
y=(x.^2-3*x+5).*exp(-5*x).*sin(x); plot(x,y,x,y,'o')
x1=0:.02:1; y0=(x1.^2-3*x1+5).*exp(-5*x1).*sin(x1);
y1=interp1(x,y,x1); y2=interp1(x,y,x1,'cubic');
y3=interp1(x,y,x1,'spline'); y
www.eeworm.com/read/197646/7983442
m exp2_16.m
%curve interpolation
ys=[0 0.9 0.6 1 0 0.1 -0.3 -0.7 -0.9 -0.2]; %已有的样本点ys
xs=0:length(ys)-1; %已有的样本点xs
x=0:0.1:length(ys)-1;%新的样本点x
y1=interp1(xs,ys,x,'nearest'); %插值产生新的样本点y1
y2=interp1(xs,ys,
www.eeworm.com/read/297900/7986131
m odd.m
function y=odd(x);
%ODD Round towards nearest odd value.
% Y=ODD(X) rounds each element of X towards the nearest odd
% integer value. If an element of X is even, ODD adds +1 to
% this value. X can b
www.eeworm.com/read/297039/8058143
m odd.m
function y=odd(x);
%ODD Round towards nearest odd value.
% Y=ODD(X) rounds each element of X towards the nearest odd
% integer value. If an element of X is even, ODD adds +1 to
% this value. X can b
www.eeworm.com/read/297034/8059134
m odd.m
function y=odd(x);
%ODD Round towards nearest odd value.
% Y=ODD(X) rounds each element of X towards the nearest odd
% integer value. If an element of X is even, ODD adds +1 to
% this value. X can b
www.eeworm.com/read/333417/12683870
m odd.m
function y=odd(x);
%ODD Round towards nearest odd value.
% Y=ODD(X) rounds each element of X towards the nearest odd
% integer value. If an element of X is even, ODD adds +1 to
% this value. X can b