Help Index exceeds the number of array elements?
The error i am recieving is:
Index exceeds the number of array elements. Index must not exceed 0.
Error Line 39: disp([‘Book 1: ‘, num2str(x(1))]);
I bellive the issues might be occuring in:
Line 34: options = optimoptions(‘linprog’, ‘Display’, ‘off’); or
Line 35 [x, fval] = linprog(f, A, b, [], [], lb, [], options);
But can’t find what is causing the error.The error i am recieving is:
Index exceeds the number of array elements. Index must not exceed 0.
Error Line 39: disp([‘Book 1: ‘, num2str(x(1))]);
I bellive the issues might be occuring in:
Line 34: options = optimoptions(‘linprog’, ‘Display’, ‘off’); or
Line 35 [x, fval] = linprog(f, A, b, [], [], lb, [], options);
But can’t find what is causing the error. The error i am recieving is:
Index exceeds the number of array elements. Index must not exceed 0.
Error Line 39: disp([‘Book 1: ‘, num2str(x(1))]);
I bellive the issues might be occuring in:
Line 34: options = optimoptions(‘linprog’, ‘Display’, ‘off’); or
Line 35 [x, fval] = linprog(f, A, b, [], [], lb, [], options);
But can’t find what is causing the error. optimization, index MATLAB Answers — New Questions