How to vectorize most constraint loops in CVX

A higher-than-two-dimension example is here:

some of other examples are here: