- Yes, you can suppress the output of the quadprog function and avoid displaying the notifications in the command window. MATLAB provides the optimoptions function to control the display and output options for optimization solvers like quadprog. You can set the 'Display' option to 'off' to suppress the output.
- Here's how you can modify your code to achieve that:
- By setting 'Display' to 'off' in optimoptions, the notifications and output from quadprog will be suppressed for all iterations within the loop. After the loop is complete, you can enable warnings again using warning('on', 'all'); if needed.