See my answer at How do I write this LMI constraint in cvx format? (Moderator note: LMIs are convex, but this is not an LMI.)