How to express this in CVX?

Hello everyone. My question is how to express this exprssion 图片 in CVX form?

x is a column vector, A is a martix in correct demension.

x'*A*x
or
quad_form(x,A)

Either way, A must be Hermitian semidefinite, or Hermitian negative semidefinite, else CVX will reject it.

In MATLAB and CVX, when x is complex, x' means x^H

I suggest you carefully read the CVX User’s Guide.

Thanks a lot. I have solved this issue perfectly.