Disciplined convex error

Is there any way to prevent CVX’s disciplined convex programming error from suspending Matlab execution. The main code invokes a function that performs CVX optimizatio, so even if there is a disciplined convex programming error, I need the main code continues execution.

You’ll need to study MATLAB’s documentation on exception handling for instructions on how to recover gracefully from DCP errors.