How to write the objective function in Matlab?

For L = 2, that is neither convex not concave, even if the x_i's are restricted to be nonnegative.

The objective function can be written in “MATLAB” (for example, using YALMIP)., but can’t be written in CVX.