Originally Posted by

**craigmain** Hi,

I have a matrix that looks like the following.

$\displaystyle

A = \left[\begin{matrix} 3 & 9 \\ 5 & 1 \\ 1 & 4 \end{matrix}\right]

$

by doing the following, I can add the two columns.

$\displaystyle

\left[\begin{matrix} 3 & 9 \\ 5 & 1 \\ 1 & 4 \end{matrix}\right] * \left[\begin{matrix} 1 \\ 1 \end{matrix}\right] = \left[\begin{matrix} 12 \\ 7 \\ 5 \end{matrix}\right]

$

My question is:

Is there any clever way to multiply columns in the matrix.

$\displaystyle

\left[\begin{matrix} 3 & 9 \\ 5 & 1 \\ 1 & 4 \end{matrix}\right] * X = \left[\begin{matrix} 18 \\ 10 \\ 4 \end{matrix}\right]

$

Can X be a matrix of any kind?

Regards

Craig.