How do i modify the codes?

function [r,p,f]=secure_isac_ris(sigma,sigma_e,S_T,v_W_ini,u,ar,at,M,C,CC,A,P,cv,sigma_s)
vvm=v_W_ini(:,M+1:M*(M+1));
B=vvm;%
d=u’arat’;
D=kron(eye(M+1),d’d);
% v_W_ini(:,M+1)
% cvx_solver mosek
% cvx_save_prefs
r_inti=rand(4,1);
for ii=1:30
cvx_begin quiet
variable f(1,M
(M+1))
variable r(4,1)
variable p(4,1)
% expression f
% expression r
% expression p
vvm_o=f(:,M+1:M*(M+1));

% constraint(1)=norm(f,2)-sqrt(P);
constraint(2)=p(1)-log(r(1))/log(2);
constraint(3)=vvm_ocvvvm_o’+sigma-r(2);
constraint(4)=p(4)-log(r(4))/log(2);
constraint(5)=fCCf’+sigma_e-r(3);
constraint(6)=log2(r_inti(2))+1/(r_inti(2)log(2))(r(2)-r_inti(2))-p(2);
constraint(7)=r(1)-sigma-2real(v_W_iniAf’)+v_W_iniAv_W_ini’;
constraint(8)=log2(r_inti(3))+1/(r_inti(3)log(2))(r(3)-r_inti(3))-p(3);
constraint(9)=r(4)-2
real(BCvvm_o’)+BCB’-sigma_e;
constraint(10)=S_T-sigma/(sigma_su’u)(2real(v_W_iniDf’)-v_W_iniDv_W_ini’);
maximize p(1) - p(2) - p(3) + p(4)

subject to
real(constraint)<=0;
f*f'<=P;
cvx_end
r_inti=r;
B=f(:,M+1:M*(M+1));

end

end

Error:Unable to perform assignment because value of type ‘cvx’ is not convertible to ‘double’.

Anyone can help me? Thanks!

Read: CVX Users’ Guide: Assignment and expression holders