I get:
for i=1:k Boxmin(1,i)=quadprog(Akonvex,b(:,i),[],[],[][],BoxSpace(1,:,i),BoxSpace(2,:,i))end
Optimization terminated: relative function value changing by less than OPTIONS.TolFun.
Subscripted assignment dimension mismatch.
Boxmin is a 1×4-row vector, Akonvex is a 3×3-matrix, b(:,i), BoxSpace(1,:,i) and BoxSpace(2,:,i) are 3×1-column vectors where k is 4, b is a 3×4-matrix and BoxSpace is a 2x3x4-tensor.
I use MATLAB R2011b.
Best Answer