代码搜索:Distance
找到约 8,736 项符合「Distance」的源代码
代码结果 8,736
www.eeworm.com/read/467219/7020432
m distance.m
function d = distance(inputcities)
% DISTANCE
% d = DISTANCE(inputcities) calculates the distance between n cities as
% required in a Traveling Salesman Problem. The input argument has two rows
%
www.eeworm.com/read/463000/7190749
m distance.m
% Program 6-3
% distance.m
%
% The calculation of distance between access point and access terminal.
%
% Input arguments
% bstn : coordinate of access point(x,y,z)
% mstn : coordinate of ac
www.eeworm.com/read/461352/7228680
m distance.m
function d = distance(inputcities)
% DISTANCE
% d = DISTANCE(inputcities) calculates the distance between n cities as
% required in a Traveling Salesman Problem. The input argument has two rows
%
www.eeworm.com/read/456844/7338893
m distance.m
function d=distance(A,B)
%this function to get the distance of two point A,B
d=sqrt((A(1)-B(1))^2+(A(2)-B(2))^2);
www.eeworm.com/read/452265/7443644
m distance.m
function D=Distance(A,B)
temp=0;
m=2
for j=1:m
temp=temp+(M(:,j)-X(:,j))*(M(:,j)-X(:,j));
end;
d=sqrt(temp);
www.eeworm.com/read/449504/7502908
m distance.m
function D = distance(xc,yc)
% PURPOSE: Computes the list of pairwise distances for a given set of locations (loc).
% ----------------------------------------------------------
% Usage: D = distanc
www.eeworm.com/read/439975/7696331
m distance.m
function d=Distance(Pos_SV,Pos_Rcv);
[m,n]=size(Pos_SV);
for i=1:m
d(i)=norm(Pos_SV(i,:)-Pos_Rcv);
end
www.eeworm.com/read/438589/7729614
m distance.m
function d=distance(const,S)
for i=1:size(S,2);
for j=1:size(const,1)
d(i,j)=(abs(const(j)-S(i)))^2; % distance of S(i) from all possible value
end
end