Code covered by the BSD License
function v=mnmxfun1(w) global L fc fab ind % ind=find((1:L)~=fc); %v=zeros(L-1,1); v=zeros(3*L-3,1); lc=1; for sc=1:3 for indc=1:L if indc~=fc v(lc)=sum(w.*fab{indc,sc})-sum(w.*fab{fc,sc}); lc=lc+1; end end end
Contact us at files@mathworks.com