Question: Jacobian requires algebraic vectors. How?

I'm having trouble using the Jacobian command for predefined vectors. I have defined several 3x1 matrices, concatenated them to a 12x1 matrix, then when I'm taking the Jacobian I get the following error:

Error, invalid input: VectorCalculus:-Jacobian expects its 1st argument, f, to be of type {Vector(algebraic), list(algebraic)}, but received Matrix(10, 1, {(1, 1) = v[x], (2, 1)...

Can anyone tell me what I'm doing wrong here?

Thanks so much in advance!

My code is:

 

Error, invalid input: VectorCalculus:-Jacobian expects its 1st argument, f, to be of type {Vector(algebraic), list(algebraic)}, but received Matrix(10, 1, {(1, 1) = v[x], (2, 1) = v[y], (3, 1) = v[z], (4, 1) = (array( 1 .. 3, 1 .. 1, [( 1, 1 ) = (cos(theta)*cos(psi)*(-sin(theta)*m*grav-sin(a)*cos(b)*T[m])+(sin(phi)*sin(theta)*cos(psi)-cos(phi)*sin(psi))*(sin(phi)*cos(theta)*m*grav+cos(a)*sin(b)*T[m]+T[t])+(cos(phi)*sin(theta)*cos(psi)+sin(phi)*sin(psi))*(cos(phi)*cos(theta)*m*grav-cos(a)*cos(b)*T[m])), ( 2, 1 ) = (cos(theta)*sin(psi)*(-sin(theta)*m*grav-sin(a)*cos(b)*T[m])+(sin(phi)*sin(theta)*sin(psi)+cos(phi)*cos(psi))*(sin(phi)*cos(theta)...



 

Please Wait...