I have a expression, \text{log}*{2}\left( 1+(P*{1}\left|\bm{v_{1}}^{\rm{H}}\bm{\xi} *{12}+\text{h}*{w_{12}}\right|^2)/N_{0}\right)

where P_{1} is a variable, rest all parameters are defined.

How to write the expression in cvx?

I have a expression, \text{log}*{2}\left( 1+(P*{1}\left|\bm{v_{1}}^{\rm{H}}\bm{\xi} *{12}+\text{h}*{w_{12}}\right|^2)/N_{0}\right)

where P_{1} is a variable, rest all parameters are defined.

How to write the expression in cvx?

You can enter `log2(x)`

as `log(x)/log(2)`

Other than that, you should be able to enter it “as is”.

thanks for that help. I thought there is keyword for writing the log. I read about rel_enter so got confused.