?? distance.sci
字號:
function [distance] = Distance(Pop1,Pop2) // the distance of two individuals
n=size(Pop1,2) -1; //Variables' number
ndis=(Pop1(1:n) - Pop2(1:n))'.^2; // the distances of variables between two individuals
distance = sqrt(sum(ndis)/n); // the distance of two individuals
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -