CVX solver maximizing with respect to Rx

Please show us your proof of concavity of the objective function.

As for Invalid data type. Input matrix must be double or single., we would need to see a reproducible example Apparently, some input data is not a single or double precision MATLAB variable (number).