R and H are known matrices with appropriate dimension. but I have following error:
Error using * (line 126)
Disciplined convex programming error:
Only scalar quadratic forms can be
specified in CVX
.

You are multiplying CVX variables, and not in an approved convex fashion (convex quadratic form).

You haven’t; shown what you intend to do with y1 and y2, so forum readers can’t say for sure whether your desired optimization problem, whatever that is, is convex and can be formulated consistent with CVX’s rules. But at this point, until shown evidence to the contrary, I’ll assume not.