?? 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 EXPORTres=[];fid=fopen(fname);while 1 tmp=fgetl(fid); if ~ischar(tmp) break else res=[res str2num(tmp)]; endendfitness=res;
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -