No, this is not possible. The closest thing you can do is use the ‘dumpfile’ facility to create a .mat file containing the input sent to the solver and the output it returns. Type help cvx_solver_settings to see how to use this feature. You might then be able to take the input data and write your own pretty-printing routine.

mcg, just curious as to why it’s not possible. I know solvers like Gurobi take several inputs, one being an lp file, or their API can be used directly within MATLAB as well. I’m guessing CVX uses the latter. Could it be a feature to have CVX output the same formulas it’s entering into the API into an LP file?

When I said it’s “not possible” I primarily meant it’s “not implemented.” But it is not as straightforward to produce a useful result as you might think. CVX performs quite a few transformations on your model before sending it to the solver. It will by no means be straightforward to extract your original problem variables from this model—in fact, in some cases, your variables need to come from the dual problem. If I put a lot of effort into exposing this internally generated model to the user, I guarantee that it will generate a lot of support emails asking “how do I find my variables!”