'Returns the matrix form of this vector with respect to the
specified coordinate system.
Parameters
system : CoordSys3D
The system wrt which the matrix form is to be computed
Examples
>>> from sympy.vector import CoordSys3D
>>> C = CoordSys3D(\'C\')
>>> from sympy.abc import a, b, c
>>> v = a*C.i + b*C.j + c*C.k
>>> v.to_matrix(C)
Matrix([
[a],
[b],
[c]])'

def to_matrix(self, system):

    return Matrix([self.dot(unit_vec) for unit_vec in system.base_vectors()])
