Multiply multi-dimensional array with vector

Just for the record, because bsxfun is mentioned as an alternative to implicit expansion in the link a couple of posts back, bsxfun is not supported by CVX.

The example, which predates MATLAB introduction of implicit expansion, or the MATLAB term “implicit expansion”, is kind of a pre(non)implicit expansion way of doing implicit expansion.