Thank you for your response!

Your code is working fine.

However, the following one (Note the log_det(.)):

```
M = 10;
N = 3;
A = randn(M,N) + 1i*randn(M,N);
cvx_begin
cvx_solver Mosek
variable B(M,M) hermitian semidefinite
subject to
A'*B*A == 0;
log_det(eye(M)+B) >= 2; % I added eye(M) to make the argument full rank
cvx_end
```

throws the following error (after a clean start of Matlab)

```
Error using *
Inner matrix dimensions must agree.
Error in cvxprob/eliminate (line 137)
P = P * cvx_invert_structure( xR );
Error in cvxprob/solve (line 18)
[ At, cones, sgn, Q, P, dualized ] = eliminate( prob, true, shim.dualize );
Error in cvx_end (line 88)
solve( prob );
Error in untitled (line 15)
cvx_end
```

However, after running the code for a second time (without restarting Matlab), it gives the error

```
Undefined function or variable 'last_act'.
Error in cvxprob/solve (line 348)
if ~found && last_solved == solved && last_act == nact,
Error in cvx_end (line 88)
solve( prob );
Error in untitled (line 15)
cvx_end
```

I omitted the “Successive approximation” warning from both error messages.