Using Matlab built-in functions or user defined functions in CVX

Hi, I am new in CVX.
Are there any examples of using Matlab built-in functions (not simple functions such as abs, sqrt). e.g. K-means-cluttering (kmeans), as a part of calculations for the constraints needed during optimization?
Tanks
Chen

The functions supported by CVX for CVX variables or expressions are

http://cvxr.com/cvx/doc/funcref.html#built-in-functions
and
http://cvxr.com/cvx/doc/funcref.html#new-functions

Other MATLAB and MATLAB toolbox functions are not supported by CVX. However, if the functions are convex (or concave) and can be written in compliance with CVX’s DCP rules, you can write your own.

Many such functions, such as for harmonic mean, can be written You may find the Mosek Modeling Cookbook helpful in doing so.

There are some add-on toolboxes for CVX, two of which are
https://qetlab.com/
and