⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 load_mut.m

📁 多目标遗传算法/用法不用多说、要用的赶快下载吧
💻 M
字号:
function mutinfo = load_mut(fname)% LOAD_MUT - loads mutation information from file%   load_mut('fname') returns the mutation information saved in the%   file 'fname'.  index=1;fid=fopen(fname);fgetl(fid);fgetl(fid);while ~feof(fid)  str=fgetl(fid);  mutinfo(index).name=str(7:end);  str=fgetl(fid);  if length(str)==8    mutinfo(index).mut_lim=[];  else    mutinfo(index).mut_lim=sscanf(str(8:end),'%g');  end  str=fgetl(fid);  mutinfo(index).pc=sscanf(str(4:end),'%g');  str=fgetl(fid);  mutinfo(index).trans=sscanf(str(13:end),'%g');  if mutinfo(index).trans==0    mutinfo(index).trans=[];  end  str=fgetl(fid);  mutinfo(index).relive=sscanf(str(8:end),'%g');  fgetl(fid);  index=index+1;  endfclose(fid);

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -