Write 2*x/y in cvx

In general no, because it is neither convex nor concave. However, it might be possible to reformulate in some cases, but only if the overall problem is a convex optimization problem.

Please carefully read

Why isn't CVX accepting my model? READ THIS FIRST!