I have a presumably silly question. New to CVX, read the User’s guide, but unfortunately, I just can’t find, how the decision variable can be displayed. I can see the optimized solution, ie the objective function value(optval_cvx). But, the values of the decision variables are just not visible. If I try displaying the decision variable ‘x(n)’ after cvx_end using matlab code,it just says ‘undefined variable or function’.
The problem was that, I was building a function, within which cvx was called. Since the workspace displays only values returned by the function, I was unable to see the decision variables. The function containing cvx script, returned only the optimal solution.