The objective function which I try to minimize is

`f=sum((abs(R_pq-R_pq_po)).^2,'all')`

where R_pq is a known matrix but R_pq_po is

```
Imn=Amn.*exp(1j*x);
R_pq_po=zeros(2*M-1,2*N-1);
for i=1:length(array_x)
for ii=1:length(array_y)
r=0;
p=array_x(i);
q=array_y(ii);
m_min=max(0,-p);
m_max=min(M-1-p,M-1);
n_min=max(0,-q);
n_max=min(N-1-q,N-1);
for mm=m_min:m_max
for nn=n_min:n_max
r=Imn(mm+1,nn+1)*Imn(mm+p+1,nn+q+1)';
R_pq_po(p+M,q+N)=R_pq_po(p+M,q+N)+r;
end
end
end
end
```

In it, array_x,array_y,M,N and A are all known matrix or array and x is a unkown variable(a matrix) which I try to achieve.

So, how can I write it in cvx? Would be grateful to any help!