Passing Matlab Functions as Objective & Constraints within CVX

See my answer in Building Functions using CVX . Does that allow you to do what you want?