📄 impfit.m
字号:
function fitness = impfit(fname)
% IMPORT - imports the fitness from a file
% fitness = impfit('fname') where fname is the name of the
% file. The order of the fitness is the same as the order of the
% chromosomes sent to evaluation.
%
% See also EXPORT
res=[];
fid=fopen(fname);
while 1
tmp=fgetl(fid);
if ~ischar(tmp)
break
else
res=[res str2num(tmp)];
end
end
fitness=res;
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -