I need to know the what "I" represents in this program and how they are getting that value explain me clearly please… in program ("[fmin,I]=min(Fitness);") this part
function [best,fmin]=bat_algorithm(para) if nargin<1, para=[5 2 0.5 0.5]; endn=para(1);d=10; Lb=-2*ones(1,d);Ub=2*ones(1,d);for i=1:n,Sol(i,:)=Lb+(Ub-Lb).*rand(1,d);SolFitness(i)=Fun(Sol(i,:));Fitnessend[fmin,I]=min(Fitness);[fmin,I]Ibest=Sol(I,:);Ibestfunction z=Fun(u)% Sphere function with fmin=0 at (0,0,...,0)
z=sum(u.^2);z
Best Answer