Hi, everyone.I have problem to solve the following question.
cvx_begin
variable p(N)
expression y
y = 1;
for i = 1 : 50
y = y*( 1 + h_ss(i)^2*p(i)/(var_n + J(i) + M(i)) );
end
y = df*log2(y);
maximize(y)
subject to
for i = 1:N
A(i)*p(i) <= Ith;
p(i) >= 0;
end
cvx_end
error
Error using cvx/times (line 262)
Disciplined convex programming error:
Invalid quadratic form(s): not a square.
Error in cvx/mtimes (line 36)
z = feval( oper, x, y );
Error in main (line 74)
y = y*( 1 + h_ss(i)^2*p(i)/(var_n + J(i) + M(i)) );
please help me