How do I change these 2 equations to ensure the problem is convex and fits into CVX

Please insert code as text and use Preformatted text button. That allows readers to copy and paste your code into a MATLAB session.

The objective and constraint you hiighlighted look non-convex, which I will assume them to bem unless you show otherwise. Please carefully read Why isn't CVX accepting my model? READ THIS FIRST! .