Hello I am trying to solve SDP problem maximize tr(AZ) s.t diag(Z)= I and Z is semi definite matrix.

I wrote this code

```
cvx_begin sdp
variable Z(n,n) hermitian toeplitz
maximize ( trace( phi{m-1}*Z ) );
subject to
diag(Z)==1
Z==hermitian_semidefinite(n);
```

cvx_end

It gives error

??? Error using ==> cvxprob.newobj at 43

Expressions in objective functions must be real.

Error in ==> maximize at 21

newobj( prob, ‘maximize’, x );

NOTE: Phi{m-1} is written as i will be doing it iteratively but in each iteration I will have phi{m-1} as 64 X 64 matrix.

Thanks in advance