Minimizing sum of powers

Thanks for the reply! Yes, I was hoping to minimize the pnorm between the a_is and x, so ||a_1-x||+||a_2-x||+||a_3-x||+…+||a_n-x||. I have trouble seeing how to do this using cvx.