% --------------------------------------------------------- % Run StoNed.m % Check StoNed.xls, there are two sheets in this file X & Y % Note that the inputs/output vectors should be collected in separete % sheets, i.e. one sheet foy inputs columns and the second for output % column. Cf the sample file Sample.elx. % x1 x2 x3 x4 x5 x6 y % ---- ---- ---- ---- ---- ---- --- % 1 2 2 3 4 4 1 % 1 % 3 % 3 % 3 % 5 % for these data setting, n = 6 & m = 1; % you can input enter your xls file in dialog box. %--------------------------------------------- [H,Aeq,beq,A,b,f,x0]= DataEntry; l=-Inf(2*size(beq,1),1); k=zeros((size(Aeq,2)/size(beq,1)-2)*size(beq,1),1); lb=[l; k]; options=optimset('LargeScale','on','MaxPCGIter', 1000); [x,fval,exitflag,output]=quadprog(H,f,A,b,Aeq,beq,lb,[],x0,options)