4000-520-616
欢迎来到免疫在线!(蚂蚁淘生物旗下平台)  请登录 |  免费注册 |  询价篮
主营:原厂直采,平行进口,授权代理(蚂蚁淘为您服务)
咨询热线电话
4000-520-616
当前位置: 首页 > 新闻动态 >
新闻详情
查看源码: gads.rar_gaplotbestindiv.m - VerySource
来自 : www.verysource.com/code/145248 发布时间:2021-03-24
functionstate=gaplotbestindiv(options,state,flag) %GAPLOTBESTINDIVPlotsthebestindividual. %STATE=GAPLOTBESTINDIV(OPTIONS,STATE,FLAG)plotsthebest %individual\'sgenomeasahistogram,withthenumberofbins %inthehistogramequaltothelengthofthegenome. %Example: %CreateanoptionsstructurethatusesGAPLOTBESTINDIV %astheplotfunction %options=gaoptimset(\'PlotFcns\',@gaplotbestindiv); %Copyright2004TheMathWorks,Inc. %$Revision:1.11.4.1$$Date:2004/04/0403:24:24$ GenomeLength=size(state.Population,2); if(strcmp(flag,\'init\')) title(\'CurrentBestIndividual\') xlabel([\'Numberofvariables(\',num2str(GenomeLength),\')\']); ylabel(\'Currentbestindividual\'); [unused,i]=min(state.Score); h=bar(double(state.Population(i,:))); set(h,\'edgec\',\'none\') set(gca,\'xlim\',[0,1+GenomeLength])
2014年10月20日function state = gaplotbestindiv(options,state,flag) %GAPLOTBESTINDIV Plots the best individual. % STATE = GAPLOTBESTINDIV(OPTIONS,STATE,FLA...查看源码: gads.rar

本文链接: http://gadiv.immuno-online.com/view-697808.html

发布于 : 2021-03-24 阅读(0)