Write fractional program in MATLAB cvx tool?

This is not convex unless you can guarantee that x>0, which you have not specified in your model. I echo Mark’s suggestion: the problems you are having are not CVX specific, and as such are not really appropriate to this forum. Consider Math StackExchange, OR-Exchange, etc.