Hello, everyone, I am a new user of CVX, and I have encountered a very difficult problem now, please help me! The code is as follows.

cvx_begin

variable e(N + 1) complex;

minimize (0.5/rho_1*square_pos(norm(f_init - U’ e + rho_1lambda_1, 2)) + …
0.5/rho_2*square_pos(norm(e - v_init + rho_2

*lambda_2, 2)) - …*

2real((A1

2

*e_init)’*(e - e_init)));

subject to

quad_form(e, A1) - 2

*real((B1*e_init)’*(e - e_init)) <= 0;

square_pos(norm(e, 2)) <= N + 1;

cvx_end

The running result is as follows. I do not know why, please help me, thank you!

??? Undefined function or method ‘vec’ for input arguments of type ‘double’.

Error in ==> cvx.quad_form at 43

v = vec( v );

Error in ==> test_1 at 63

quad_form(e, A1) - 2*real((B1*e_init)’*(e - e_init)) <= 0;