?? mean.m
字號:
function me = mean(chr)
% STD - Average value
% For vectors, MEAN(chr) returns the mean value of the members
% in the population. For matrices, MEAN(chr) is a column vector
% containing the average value of each row
%
% See also MAX,MIN,MEDIAN,STD
[m n]=size(chr);
for k=1:m
for l=1:n
fit(l)=get(chr(k,l),'fitness');
end
me(k,1)=mean(fit);
end
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -