dist.m
来自「这里面有很多有用的东东」· M 代码 · 共 14 行
M
14 行
function d = dist(X,Y)
%DIST
%Distance between points X and Y in Rn.
%Calling format: dist(X,Y)
%Copyright Gareth Williams, Stetson University
%gwilliam@stetson.edu, http://www.stetson.edu/~gwilliam
%Accompanies "Linear Algebra with Applications" by Gareth Williams
Z=X-Y;
d=sqrt(Z*Z');
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?