how to choose the best value of a function
Show older comments
v=[1,1,1,0,0,0,0,0,0,0;0,0,0,1,1,1,0,0,0;0,0,0,0,0,0,0,1,1,1];
v1=perm(v);
for a=1:10;
for i=1:3
G=G=sum(h(a,i)+h(i,a))*v -sum(h(a,i)+h(i,a))*v1
Gain=G(v1,v,M);
disp(Gain),
end
end
I need to have the value of Gain of every permutation and after choose the permutation which have the least Gain value. Thank you for helping me
Accepted Answer
More Answers (0)
Categories
Find more on Introduction to Installation and Licensing in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!