Problem in cvx with log2 function?

(Bassant) #1

Hi all,

I’m trying to solve this problem, but i get the error:

Undefined function ‘log2’ for input arguments of type ‘cvx’.

Error in SUM_SE (line 37)
f = sum(w_k .* log2(1+a_k.*x))

is there a problem with log2 function when using cvx software??

Thanks in advance

(Mark L. Stone) #2

CVX does not support log2. Use log.

Instead of

(Bassant) #3

Thanks alot Mark :slight_smile: