I want to solve this SDP problem, but something wrong in my code

CVX only accepts convex constraints.

As for your problem, it seems (38) and (39) can be replaced by z(i,i)*Nu<=Pmax*s, so p is removed.