How to convert Matlab symbolic variables to cvx variables

E.g, using syms x y, I defined f=x*y,I need to keep calling taylor(f) in my program.How should I convert the symbolic variables in the result to cvx variables.Thanks a lot!

I tried to use subs(f,x,cx), where cx is cvx variables, but I got an error. What should I do?Thanks a lot!

I don’t know. But maybe if you can get the MATLAB symbolic expression into a string and then eval it, you can get CVX to recognize it. You might need to get help at .

Thank you very much for your suggestion!